GNU (MinGW) Assembler and Linker

Hello,

I'd like to assemble and link using the gnu assembler (as) and linker (ld),
without calling GCC.

Does anybody know how can I do that?

thanks

I've got a simple assembly file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
		.text
LC0:
        .ascii "Hello, world!\0"
.globl _main
_main:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        andl    $-16, %esp
        movl    $0, %eax
        movl    %eax, -4(%ebp)
        movl    -4(%ebp), %eax
        call    __alloca
        call    ___main
        movl    $LC0, (%esp)
        call    _printf
        movl    $0, %eax
        leave
        ret
Topic archived. No new replies allowed.