CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Merge PICC and PICBasic Code

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
drahcier



Joined: 08 Jul 2005
Posts: 3
Location: Texas

View user's profile Send private message

Merge PICC and PICBasic Code
PostPosted: Sun Jul 10, 2005 10:29 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Mon Jul 11, 2005 10:11 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 11, 2005 2:56 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Mon Jul 11, 2005 5:21 pm     Reply with quote

If you just need simple ethernet conection go with the xport.
http://www.lantronix.com/device-networking/embedded-device-servers/xport.html
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group