> 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.
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!