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.
How do I link several assembly files (src) together Hi! I am new into a project where I have several assembly files (.src) belonging to a project in my hand. I figured that almost 80% of them belong to the project and the rest 20% are just there (I am not too sure about it may be they are old source files). I created a new project using Keil uVision2 and added up all the assembly source file under it. But now how do I tell it which all source files it has to link and which not. Because as of now If i saw build target files it just tries to build every assembly source file in the order they where added. Can anyone help me to understand how actualy you link the various assembly source files in Keil uVision2. Since my project has no documentation is there also a smarter way to find out which all assembly source files belong together and should be linked. Regards Kumaran
How could have this code compliled before in Riegel if they had not defined it then? By means of an #include file, typically. Or because the assembler assumes it knows the target architecture well enough that it can predefine all SFRs. IIRC, Keil does that in A51 by default, but not in AX51 (the extended assembler). You really will have to read the manuals. Slowly. All of it at least once. You stand no chance of getting this project done unless you learn how to use all the tools involved. It may be better to step back from the actual project for the time being and investigate the Tutorial and examples coming with your Keil installation.
Yes thats why I am trying to work out the tutorials first. My problem is I was a database programmer before. The whole project is written in assembly with not a single line of C code so there is no #include in the code. All i can see is calls to various other modules from the main.src And ofcourse I see some INC files with EXTERN directives. But even there I dont see any SP initialization.
"You really will have to read the manuals. Slowly. All of it at least once." That should be, "You really will have to read the manuals. Slowly. All of them at least once." That's all the Keil manuals and the Rigel manuals. "You stand no chance of getting this project done unless you learn how to use all the tools involved." Exactly - and that means both the Keil tools and the Rigel tools.
"My problem is I was a database programmer before." Yes, that's a big problem! ;-) seriously, if you have no idea about assembler, then you really need to learn assembler first - before you start trying to port undocumented Rigel assembler into Keil assembler! Maybe the honourable thing to do would be to admit now that you are not the right man for this job at this time - I think this is a job for an experienced embedded assembler programmer. "there is no #include in the code. All i can see is ... some INC files with EXTERN directives." That's the assembler equivalent of #include! Again, you really need to get to grips with assembler before trying to take this port any further at all!