diff options
author | Niklas Halle <niklas@niklashalle.net> | 2020-04-21 23:05:26 +0200 |
---|---|---|
committer | Niklas Halle <niklas@niklashalle.net> | 2020-04-21 23:05:26 +0200 |
commit | e2fcea07eca10bf925e450dc1c2ce60735da16c2 (patch) | |
tree | a32fd0fafc1d2c7863cfcbb43ef8e044f5a0b6f2 /main.c | |
download | betriebssysteme-e2fcea07eca10bf925e450dc1c2ce60735da16c2.tar.gz betriebssysteme-e2fcea07eca10bf925e450dc1c2ce60735da16c2.zip |
initial - basic makefile and main.c
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +#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__("" + : + : + : + ); + TRACE(post assembly); + return 0; +} + +/* https://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html */
\ No newline at end of file |