Jump to content
Pavel

Hitech To Boostc Code Converter

Recommended Posts

Pavel    0

We have a new experimental feature added to SourceBoost IDE starting from version 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 IDE output window). Please post here (or email to support@sourceboost.com) your feedback about this feature.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
hackinblack    0

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!

Share this post


Link to post
Share on other sites

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×