I am using the fantastic(!) Code::Blocks IDE for making code for my
T89C51CC01 with SDCC ( and also other Big c++ RTOS projects for PC), and I
invite you to try it .
You may download it from www.codeblocks.org .
To create a project for SDCC, you can do as follows:
1 - Create an empty project,
File -> new -> project -> create an empty project
2 - Give it a name: MyApp
Folder to create in: C:\SDCC-MM\MyApp (C:\SDCC-MM is my working dir
for SDCC work)
Resulting filename: C:\SDCC-MM\MyApp\MyApp.cbp (correct the path :
MyApp subdir name duplicates)
next >
3 - Compiler: SDCC Compiler
uncheck -> Create debug configuration
check -> Create release configuration : MyApp
Output dir : C:\SDCC-MM\MyApp\
Objects output dir: C:\SDCC-MM\MyApp\objs\
Finish
4 - Ignore script warnings
5 - Go to : Project -> Add files
Add your files: at least MyApp.c ( and some other *.c *.h files)
6 - Go to: Project -> Properties ->Settings tab:
Leave everything as is: (Title: MyApp and Platforms:
All )
7 - And Project -> Properties ->Build targets tab:
Type: Native
Output Filename: C:\SDCC-MM\MyApp\MyApp.HEX
Uncheck both the auto generate prefix and extension
Check the build target files
Build options buttom:
Compiler settings : Check the flags you want
Searching directories: Compiler ->add : C:\SDCC
( this is my default SDCC dir)
Searching directories: Linker ->add : C:\SDCC
OK
8 - Build your App ( hopefully you have no sintax or other errors).
9 - Enjoy the sweet smell of your "MyApp.HEX" file.
Obs:
If you go to Project->Build options menu, You will find that you have
the same dialog as described in 7) but empty. You may ignore it or enter the
same settings you did before. But if you check a flag confliting with the
previous ones, you have to search both dialogs.
Regards
J.B
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user