We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I use keil_c #pragma src creat *.src file.I insert some code in *.src. How to compiler *.src to HEX file? I creat project include *.src file.After compiler and link the file,I get many error.please help me,thank you.
Read the C51 User's Guide (C51.pdf) & uVision Getting Started Guide (GS51.pdf) - use the 'Books' tab in the uVision Project window. With uVision, check the 'Generate Assembler SRC file' and 'Assemble SRC File' options
Thank you,but I want to know how to kill the error. The object file creat the *.obj file. But compiler the object include *.src file.The compiler can not find the external symbol.I had select"include in target build".The complier can not link the object modules how can i do? please help me.thank you.
I want to know how to kill the error You haven't actually said what the error is! The compiler can not find the external symbol What external symbol? I had select "include in target build". In addition, you must select both 'Generate assembler SRC File' and 'Assemble SRC File' The complier can not link the object modules Of course it can't - it's a compiler, not a linker! When using inline assembler, the process is: 1. The Compiler (C51.exe) converts the C source (.c) file to an assembler source file (.src); 2. The Assembler (A51.exe) converts the Assembler source produced by the Compiler (.src) to a relocatable object file (.obj) 3. The linker (BL51.exe) combines all the relocatable object (.obj) files for the project, and any Libraries (.lib), to an absolute object file (usually no extension) 4. If required (check 'Create HEX File' in uVision), BIN2HEX.exe converts the absolute object file to an Intel Hex file (.hex)
Thank you very much.