IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hitech To Boostc Code Converter
Pavel
post Apr 14 2009, 08:36 AM
Post #1


Super Maniac
*****

Group: Administrators
Posts: 1,154
Joined: 6-July 04
From: Melbourne, Australia
Member No.: 424



We have a new experimental feature in SourceBoost 6.95. When a C file is added to a project via the workspace right click menu it is analysed by the ide and if this file looks like written for the HiTech compiler IDE tries to convert it to BoostC format. This won't make it 100% BoostC but still will do some routine work like updating system variable names for you (all changes will be logged in the output window).

Regards,
Pavel
Interested in advertising here? Contact support@sourceboost.com
Go to the top of the page
 
+Quote Post
hackinblack
post Jun 20 2009, 11:22 PM
Post #2


Newbrie


Group: Members
Posts: 1
Joined: 16-June 09
Member No.: 5,170



just read this posting after succesfully porting very simple
hi-techC example on my own..WITHOUT a converter
if i can ANYONE can!

after finding the great series of articles by Gooligum electronics,
Australia, including 'programming baseline PICs in C'

i had a stab at changing hi-tech source code to BoostC compatible code...

PDF lesson 1, exercise 4a (source code ' BC_L1-PB_LED-HTC.c ')

Changes to source code to port from hi-tech C to BoostC
for this example, are just these:-

1.change processor to 12F609
(12F509 isn't supported by boostC;unless there's a workround?)

2.change ' include <htc.h> ' to ' include <system.h> '

3.change all references to ' GPIO ' and ' TRISIO '
to lower case i.e.' gpio ' or ' trisio '

this is all that i did to compile the program successfully!
Go to the top of the page
 
+Quote Post

Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 9th February 2010 - 11:32 AM