blob: db72bf979148e36c7580ac7e7b7124d831f5b0c4 (
plain) (
tree)
|
|
#include <stdio.h>
#if !defined(NDEBUG)
#define TRACE(MSG) \
fprintf(stderr, "%s\n", #MSG)
#else
#define TRACE(MSG)
#endif
int main(int argc, char *argv[]) {
TRACE(pre assembly);
__asm__("imul %%eax, %%eax"
:
:
:
);
TRACE(post assembly);
return 0;
}
/* https://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html */
|