Re: Assembling with GNU and ADS

From: 42Bastian Schick (bastian42_at_yahoo.com)
Date: 06/30/04

  • Next message: Simone Mehta: "Newbie to RTOS ; need some sample code"
    Date: Wed, 30 Jun 2004 13:26:57 GMT
    
    

    On 30 Jun 2004 04:32:52 -0700, armarm123@hotmail.com (HG) wrote:

    >Hi,
    >
    >I want to be able to build my project with both the ARM ADS and GNU
    >tools. This is relatively easy for the C files, however, it is proving
    >very difficult (actually impossible) to do this for assembly files.
    >Anyone know of a clever trick (pre-processor?) that allows me to
    >maintain a single assembly source file and assemble it with either GNU
    >GAS or ADS ?

    For our kernel I use a combination of C-Preprocessor and perl.
    I.e. I have one source that I pre-process to get ADS,IAR and GNU
    assembly.

    This works fine (I do this for various CPUs).

    -- 
    42Bastian
    Do not email to bastian42@yahoo.com, it's a spam-only account :-)
    Use <same-name>@epost.de instead !
    

  • Next message: Simone Mehta: "Newbie to RTOS ; need some sample code"

    Relevant Pages

    • Assembling with GNU and ADS
      ... I want to be able to build my project with both the ARM ADS and GNU ... This is relatively easy for the C files, however, it is proving ... maintain a single assembly source file and assemble it with either GNU ...
      (comp.arch.embedded)
    • Re: Assembling with GNU and ADS
      ... This is relatively easy for the C files, however, it is proving ... >>maintain a single assembly source file and assemble it with either GNU ...
      (comp.arch.embedded)
    • Crosscompiling trouble
      ... The problem is not with the compiler, just the assembler (GNU as). ... The funny thing is that if the opcode is "lis", ... Maybe It's a syntax mistake, but I can't find any doc about the syntax for ... and the command that I use to assemble is ...
      (comp.os.linux.powerpc)