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

C & Assembly

Can any one tell me how to mix C and Assembly in kiel in a single file?

Thanks in advance

Parents

  • All the manuals are available online:
    http://www.keil.com/support/man/

    I can't find the RealView manuals online.

    I'm trying to add some assembly code to a RealView ARM (AT91SAM7S) project and am not getting very far. I found the "Interfacing C and Assembly" advanced programming topic, but am not sure it's applicable, since it's under a CARM (rather than a RealView) heading. I tried copying the example code from that topic and putting it into my RealView project, but I get errors out the kazoo starting on the first line. I searched for "interfacing" in the RealView Assembler Guide, but it's not there. I also tried putting #pragma SRC at the top of a small C file to see if that would help, but in RealView, it doesn't look like that pragma is supported, and I haven't been able found a pragma that looks like it replaces the SRC pragma yet (bummer!).

    Can anyone point me to (1) where the RealView manuals are online, and (2) to a sample RealView compatible (bare bones, small, simple) assembly file that I can use as a template to help get started (maybe for something as simple as a function that just toggles the state of an I/O pin), and (3) an app note (or something) that shows how to interface C and assembly with the RealView tools?

    EDITORIAL COMMENT: I sure wish I would've received hard copy manuals from KEIL when I upgraded to RealView. Nothing like kicking back in a comfortable recliner with my feet propped up for some serious reading. Reading PDF files on a PC is no fun for me. Can't put bookmarks in them, can't dog-ear pages, can't highlight text or add annotations, can't stuff prinout's in them... I could go on and on. Printing out a 464 page PDF file is not an option for me.

Reply

  • All the manuals are available online:
    http://www.keil.com/support/man/

    I can't find the RealView manuals online.

    I'm trying to add some assembly code to a RealView ARM (AT91SAM7S) project and am not getting very far. I found the "Interfacing C and Assembly" advanced programming topic, but am not sure it's applicable, since it's under a CARM (rather than a RealView) heading. I tried copying the example code from that topic and putting it into my RealView project, but I get errors out the kazoo starting on the first line. I searched for "interfacing" in the RealView Assembler Guide, but it's not there. I also tried putting #pragma SRC at the top of a small C file to see if that would help, but in RealView, it doesn't look like that pragma is supported, and I haven't been able found a pragma that looks like it replaces the SRC pragma yet (bummer!).

    Can anyone point me to (1) where the RealView manuals are online, and (2) to a sample RealView compatible (bare bones, small, simple) assembly file that I can use as a template to help get started (maybe for something as simple as a function that just toggles the state of an I/O pin), and (3) an app note (or something) that shows how to interface C and assembly with the RealView tools?

    EDITORIAL COMMENT: I sure wish I would've received hard copy manuals from KEIL when I upgraded to RealView. Nothing like kicking back in a comfortable recliner with my feet propped up for some serious reading. Reading PDF files on a PC is no fun for me. Can't put bookmarks in them, can't dog-ear pages, can't highlight text or add annotations, can't stuff prinout's in them... I could go on and on. Printing out a 464 page PDF file is not an option for me.

Children