tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] A few beginner questions


From: grischka
Subject: Re: [Tinycc-devel] A few beginner questions
Date: Sun, 11 Dec 2011 18:40:00 +0100
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

David Mertens wrote:
Is tcc_add_symbol always necessary? I've noticed that I can define a function in my main program and apparently call it without calling a tcc_add_symbol, but when I try to remove that line from libtcc_test.c, it croaks with undefined symbol issues. My current test case that raises this question is quite complex, so I can try to boil it down if that would help.

Using tcc_add_symbol is not necessary if your program works well
without.

What are the best references for understanding the basic compile process? In particular, why is it necessary to relocate code? I suspect the "Dragon Book" would be a good starting point, but I figured I would check before diving into it.

Of course the best way to understand the basics of a compiler is to
learn to understand TinyCC.  (What answer did you expect ;=))

--- grischka




reply via email to

[Prev in Thread] Current Thread [Next in Thread]