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

assembly coding in keil

hi!

i tried buliding target in keil in assembly language and it gave a cryptic error..
can anyone help me figure out how to build target or run a assembly language written code in keil... i can well do it in C but unable to figure it out using assembly....
Thanks.

Parents
  • "...thought it would help hasten the process.."

    Hasten your process of typing perhaps, but lengthens our process of reading and worse, demotivates us from replying.

    "undefined symbol _main(referred frm startup.o)"

    startup.s is the runtime startup code for a typical C program whose entry point is main(). I see you've got a "Main", but I think you'd agree that "Main" does not quite match "_main".

    "indefinrd symbol _use_two_region_memory (referred frm startup.o)"

    Determine what "_use_two_region_memory" and duplicate its functionality (and name) in your code or edit startup.s to eliminate the reference entirely.

Reply
  • "...thought it would help hasten the process.."

    Hasten your process of typing perhaps, but lengthens our process of reading and worse, demotivates us from replying.

    "undefined symbol _main(referred frm startup.o)"

    startup.s is the runtime startup code for a typical C program whose entry point is main(). I see you've got a "Main", but I think you'd agree that "Main" does not quite match "_main".

    "indefinrd symbol _use_two_region_memory (referred frm startup.o)"

    Determine what "_use_two_region_memory" and duplicate its functionality (and name) in your code or edit startup.s to eliminate the reference entirely.

Children
  • resp. sir,
    the problem with "main" is probably solved as it gives no error regarding "main" when i changed "main" to "_main"
    but then with the same assembly code it gave another error which i tried fixing but was unable.
    the same code with 'main' replaced by '_main' gave the output:
    first.afx:error:L6913E:invalid value for --ro-base.
    but i am not using ro in my code.

    what may be the mistake sir?
    thanks