Hi,

> now it is working thanks for the help .Now  i want to know from where i get a 
> good documentation of sdcc .in the program sent to me contains these lines.
> > RA1 = 1;
> > RA2 = 0;
> i want to know from where you get the data that this type of declaration is 
> possable in sdcc will you plz send me that link .help me

The device-specific declarations are all located in the include/pic/*.h (such 
as pic16f877.h) files, their definitions are found in the library sources 
device/lib/pic/**/*.c (such as device/lib/pic/libdev/pic16f877.c) and their 
respective libraries such as pic16f877.lib.
The SFR bits are implemented via bitfield members in structs pinned to the 
locations of the respective SFR, please have a look at the header file for the 
device you are targetting.
If you need to make any changes to the pic16fXXX.c or .h files, just copy them 
into your project's source tree, compile and link them into your project. You 
might then need to prevent sdcc from linking against pic16fXXX.lib, e.g. by 
renaming the file or by manually linking with gplink directly; in the latter 
case, do not forget to link with libsdcc.lib or you will get undefined 
references to compiler-defined helper routines such as __gptrget3.

Regards,
Raphael

_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to