on-internet
← Community

How to emit floating point immediate operand using decimal representation in gnu assembler

Stack Overflow ·

For example, 0.5f is 0x3F000000 in the target platform. I want to use something like movl $0.5,%eax instead of movl $0x3F000000,%eax The assembler is from TDM-GCC.

Comments

Sign in or sign up to comment and upvote.

No comments yet.