hi,
is there anything special when mixing asm and tinycc c? I'm asking
because i've got an project which is using those to languages in some
*.obj files and linking them with "ld". It works with gcc, but the
program ( kind of an tiny-hobby-operating-system) produces errors with tcc.
doesn't matter if asm code is produced by nasm or fasm...
any ideas?
well, here's how i compile that stuff:
c:
tcc -ffreestanding -c Main.c -o Main.o
asm:
nasm -f aout Starter.asm -o Starter.o
linking:
ld -T Link.ld -o Kernel Starter.o Main.o Video.o Font8x8.o Cpu.o Pic.o
Idt.o Isr.o Keyboard.o
Link.ld is:
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
.text 0x10000 : {
*(.text)
}
.data : {
*(.data)
}
.bss : {
*(.bss)
}
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel