Re: Defining address's offset.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Liza Atkin" <latkin@xxxxxxxxxxxx> writes:


> I've been porting GCC for a new architecture and currently got stuck with a
> little switch.
> 
> The GCC I have now, while creating the assembler file responds to C++
> command "i++"
> 
> by adding an offset of 4 while what I need is the offset of 1 instead.
> 
> I didn't find macro/.md command responsible for it, so I will apprecite
> 
> if someone could direct me in the right way.

You need to give a complete test case in order for us to say anything
intelligent.

For example, given
    char *p;
    void foo() { p++; }
Then it is correct for p to be incremented by 4 on a machine with
32-bit addresses and 8-bit bytes.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux