View previous topic :: View next topic |
Author |
Message |
drahcier
Joined: 08 Jul 2005 Posts: 3 Location: Texas
|
Merge PICC and PICBasic Code |
Posted: Sun Jul 10, 2005 10:29 pm |
|
|
I have a large project written in PICBasic and now want to add the functionality of the Microchip TCP/IP stack. I thought the easiest thing to do would be to use the PICC compiled version of the TCP/IP stack and merge it with my PICBasic code.
Is it possible to merge code at the assembly level then program the PIC with the re-compiled assembly code?
Or stated a different way; how can I combine the two pieces of code without re-writing it and load it on my PIC? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Jul 11, 2005 10:11 am |
|
|
Simple answer, you can't. Well, it might be possible by reserving memory, locating code, adding assembly calls to C functions - you would spend more time debugging it then it would take to rewrite the Basic code. If you ever did get it right, think about what happens when you must change something.
You best option is to rewrite it in C
Another option is to rewrite the stack using BASIC. |
|
|
drahcier
Joined: 08 Jul 2005 Posts: 3 Location: Texas
|
|
Posted: Mon Jul 11, 2005 2:56 pm |
|
|
That's not good news.
Has anyone seen a good TCP/IP stack written in PICBasic? |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
|
|