:: Re: [DNG] OT: Assembly resources
Kezdőlap
Delete this message
Reply to this message
Szerző: Emiliano Marini
Dátum:  
Címzett: Hendrik Boom
CC: dng
Tárgy: Re: [DNG] OT: Assembly resources
Maybe the C compiler adjusts what registers to use for C code to avoid
conflicts, or saves his registers on the stack before the assembly code.
I'm just guessing, I never embed assembly code in C programs.

On Wed, Mar 2, 2016 at 7:17 PM, Hendrik Boom <hendrik@???> wrote:

> On Wed, Mar 02, 2016 at 08:55:20AM -0300, Emiliano Marini wrote:
> > But be aware that gas is the one GCC uses for in-line assembly embedded
> in
> > C programs. So, if you are planning to embed assembly instructions in C
> > code, you will need to learn gas syntax.
>
> I've always wondered how the C code generator manages not to get
> confused between the registers I use and the ones it allocates.
>
> -- hendrik
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>