tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Working on new features


From: Frédéric Feret
Subject: Re: [Tinycc-devel] Working on new features
Date: Tue, 01 Sep 2009 13:33:01 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)


Don't get me wrong, but:
-    if (file_type != TCC_OUTPUT_OBJ) {
+    if ((file_type != TCC_OUTPUT_OBJ) && (s1->output_type !=
TCC_OUTPUT_FORMAT_BINARY)) {

I'm curious how you tested your changes?
These changes allow TCC to generate plain-binary executable files. This is useful
for who want to compile a boot sector or a MSDOS .COM application. For
generating a plain-binary executable, invoke TCC like this:

tcc -nostdlib -Wl,--oformat,binary <filename>

-- Frederic






reply via email to

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