Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

OpenWatcom version 1.7 available | anyone tested it ? (Announce)

posted by rr Homepage E-mail, Berlin, Germany, 02.09.2007, 17:24

> Would one asm be sufficient for a ASM block ? And ".att_syntax
> prefix" is obligatory at he end ? :hungry:

You could also write (\n are mandatory!):

int main()
{
   asm("mov eax, 3\n"
       "int 0x10\n");
   return 0;
}


Build command: gcc -Wall -O2 -s -masm=intel main.c -o main.exe

If you need to write large assembly snippets, it's better to write separate .S files for GAS or just use NASM. ;-)

see Brennan's Guide to Inline Assembly for more information

> What to download if I want the most "raw" (C->ASM) GCC (no
> libs, no "autoconf", no RHIDE, no Ada/Fortran/C++ , ...) ?

1) Try the DJGPP Zip File Picker.
2) You need "v2/djdev203.zip", "v2gnu/bnu217b.zip", "v2gnu/gcc421b.zip". That's less than 10 MiB. (Older versions are usually smaller.)

---
Forum admin

Thread locked
 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 259 users online (0 registered, 259 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum