[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] linking tcc-code together with asm-code.
From: |
Paul Anselm Härle |
Subject: |
[Tinycc-devel] linking tcc-code together with asm-code. |
Date: |
Tue, 28 Jun 2005 20:21:24 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050331) |
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] linking tcc-code together with asm-code.,
Paul Anselm Härle <=