This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Assembly constraints - offset?


Avi Kivity wrote:

Using %[member1]c should work.

Where exactly?


In the instruction section ("mov $1, %[member]c(%[base])") the 'c' is emitted unchanged.

In the constraint section ([member1]"c"(...)) 'c' means the ecx or rcx register.

It's %c[member] in the instruction section.


I could not find any documentation of this in the user's manual. Is it new glasses time or shall I file a PR?

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]