1. This forum section is a read-only archive which contains old newsgroup posts. If you wish to post a query, please do so in one of our main forum sections (here). This way you will get a faster, better response from the members on Motherboard Point.

Linking H8s/2144 assembly code using HEW

Discussion in 'Embedded' started by Arthur Richards, Nov 12, 2004.

  1. I need to call a C++ function from assembly code using the Renesas HEW
    development system.

    The C++ function is "void flash_start(void)".
    In assembly I define it as .GLOBAL _flash_start

    The linker error message is - Undefined external symbol
    "_flash_start".......

    I also tried it without the leading underscore. Name mangling problem
    maybe??

    TIA
    Arthur
     
    Arthur Richards, Nov 12, 2004
    #1
    1. Advertisements

  2. Arthur Richards

    Gary Kato Guest

    Name mangling problem
    Yes. Just declare it as:

    extern "C" void flash_start(void)
     
    Gary Kato, Nov 12, 2004
    #2
    1. Advertisements

  3. Arthur Richards

    Mike Page Guest

    You can also have a look at the compiler generated ASM listing. I did
    the same for some interrupt vector hooks that needed ASM entries.

    Regards,
    Mike.
     
    Mike Page, Nov 12, 2004
    #3
  4. Yes!
    Thanks

     
    Arthur Richards, Nov 13, 2004
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.