This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I link several assembly files (src) together

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

Parents
  • 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.

Reply
  • 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.

Children
  • "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!