Hi Donald, On Wed, 2011-03-23 at 14:13 +0800, duck donal wrote: > Hi,Krish > Thank you so much for answering my questions detailedly!
Krish does a much better job in explaining then I do, I can learn form him :-) > I‘ve got it.Thus next time I'll check the <****.h> file to find out > the specific register name of machine in SDCC. Actually you should read the datasheet and user manual that belongs to your specific processor and then check the header file for the correct statements. I personally hate the upper case names used in the header files so I tend to rewrite a header file for my specific processor. > Now I really want to know what SDCC compile flow is.How a c code > become to be a assembly code,even the machine code? Why would that be interesting to know other than the fact that it just works or you want to write compiler/linker stuff ? Go ahead and read this : http://sdcc.sourceforge.net/doc/sdccman.html/node186.html I for one have no clue about the compiler/linker/assembler internals and I do not really care about that :-) Just happy that there are good people out there willing to spend time on writing it ! > What is the differences between SDCC and GCC? SDCC is typically targetted at the 8051 and PIC processors. There are a few other architectures for which it can generate code. But as far as I know it started out as being a compiler for the 8051. GCC is a compiler which normally generates code for i386 and the like. Due to the structure it can (only ?) be retargetted for other 32bit processors. I use it for my arm7 and cortex-m3 projects. roelof ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user