![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 | |
|
Newbie
Join Date: Jun 2005
Posts: 18
Rep Power: 0
![]() |
Inline asm - earlyclobber operand
With GCC, the '&' character can be used to specify an "earlyclobber" operand of asm modules. I was reading a piece of code that used this for an output constraint, and got into reading more about what it's for. I'm pretty confused by the generic definition that seems to be everywhere I look, however..
Quote:
|
|
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I personally consider that "feature" of gcc to be harder and more confusing than just writing the dam' assembly code, so I don't use it. I suspect the early clobber thing is where an intermediate result would be stored, so you wouldn't want to use it for anything that has other uses upcoming, like one of the inputs.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|