<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tinycc/win32/examples, branch main</title>
<subtitle>Tiny C Compiler by Fabrice Bellard Git mirror of the final release by Bellard, discarding all changes after. The repository at https://repo.or.cz/tinycc.git has become untrustworthy. Also the tcc sources have become tainted with AI slop.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/'/>
<entry>
<title>tccgen/win32: let __declspec(dllimport) imply extern</title>
<updated>2017-04-04T06:34:52+00:00</updated>
<author>
<name>grischka</name>
<email>grischka</email>
</author>
<published>2017-04-04T06:34:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=536ed76d5a69d8e3c0e247d6557f5942818cb253'/>
<id>536ed76d5a69d8e3c0e247d6557f5942818cb253</id>
<content type='text'>
Also, retain storage qualifiers in type_decl, in particular
also for function pointers.  This allows to get rid of this
very early hack in decl()
    type.t |= (btype.t &amp; VT_STATIC); /* Retain "static". */
which was to fix the case of
    int main() { static int (*foo)(); ...

Also:
- missing __declspec(dllimport) is an error now
- except if the symbol is "_imp__symbol"
- demonstrate export/import of data in the dll example (while
  'extern' isn't strictly required with dllimport anymore)
- new function 'patch_storage()' replaces 'weaken_symbol()'
  and 'apply_visibility()'
- new function 'update_storage()' applies storage attributes
  to Elf symbols.
- put_extern_sym/2 accepts new pseudo section SECTION_COMMON
- add -Wl,-export-all-symbols as alias for -rdynamic
- add -Wl,-subsystem=windows for mingw compatibility
- redefinition of 'sym' error for initialized global data
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, retain storage qualifiers in type_decl, in particular
also for function pointers.  This allows to get rid of this
very early hack in decl()
    type.t |= (btype.t &amp; VT_STATIC); /* Retain "static". */
which was to fix the case of
    int main() { static int (*foo)(); ...

Also:
- missing __declspec(dllimport) is an error now
- except if the symbol is "_imp__symbol"
- demonstrate export/import of data in the dll example (while
  'extern' isn't strictly required with dllimport anymore)
- new function 'patch_storage()' replaces 'weaken_symbol()'
  and 'apply_visibility()'
- new function 'update_storage()' applies storage attributes
  to Elf symbols.
- put_extern_sym/2 accepts new pseudo section SECTION_COMMON
- add -Wl,-export-all-symbols as alias for -rdynamic
- add -Wl,-subsystem=windows for mingw compatibility
- redefinition of 'sym' error for initialized global data
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove misc. files</title>
<updated>2016-10-01T18:27:41+00:00</updated>
<author>
<name>grischka</name>
<email>grischka</email>
</author>
<published>2016-10-01T18:27:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=8637c1d0ad08d28052efc1de5c38b63acd2c08fc'/>
<id>8637c1d0ad08d28052efc1de5c38b63acd2c08fc</id>
<content type='text'>
- from win32/include/winapi: various .h

  The winapi header set cannot be complete no matter what.  So
  lets have just the minimal set necessary to compile the examples.

- remove CMake support (hard to keep up to date)
- some other files

Also, drop useless changes in win32/lib/(win)crt1.c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- from win32/include/winapi: various .h

  The winapi header set cannot be complete no matter what.  So
  lets have just the minimal set necessary to compile the examples.

- remove CMake support (hard to keep up to date)
- some other files

Also, drop useless changes in win32/lib/(win)crt1.c
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a demo.bat file to the examples directory on Windows</title>
<updated>2015-04-10T04:46:04+00:00</updated>
<author>
<name>seyko</name>
<email>seyko2@gmail.com</email>
</author>
<published>2015-04-10T04:46:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=e92dc595cd10405b3ed14b2663affeb50b47e169'/>
<id>e92dc595cd10405b3ed14b2663affeb50b47e169</id>
<content type='text'>
    And a new console demo program: taxi and passengers simulator
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    And a new console demo program: taxi and passengers simulator
</pre>
</div>
</content>
</entry>
<entry>
<title>Turn on a implicit-function-declaration warning by default.</title>
<updated>2015-03-03T13:32:25+00:00</updated>
<author>
<name>seyko</name>
<email>seyko2@gmail.com</email>
</author>
<published>2015-03-03T13:32:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=b5f88b593a580956dfb74b6fb9ba9ab3e178bdf6'/>
<id>b5f88b593a580956dfb74b6fb9ba9ab3e178bdf6</id>
<content type='text'>
A non declared function leads to a seriuos problems. And while
gcc don't turn this warning on lets tcc do it. This warning
can be turned off by -Wno-implicit-function-declaration option.
And autor must explicitly do this if program must be compiled
with this warning off.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A non declared function leads to a seriuos problems. And while
gcc don't turn this warning on lets tcc do it. This warning
can be turned off by -Wno-implicit-function-declaration option.
And autor must explicitly do this if program must be compiled
with this warning off.
</pre>
</div>
</content>
</entry>
<entry>
<title>win32: reformat examples, crt etc</title>
<updated>2009-07-18T20:07:10+00:00</updated>
<author>
<name>grischka</name>
<email>grischka</email>
</author>
<published>2009-07-18T20:07:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=97738d1ae99035695599e5ddec2f0cd5931101d5'/>
<id>97738d1ae99035695599e5ddec2f0cd5931101d5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>new subdirs: include, lib, tests</title>
<updated>2009-04-18T13:08:03+00:00</updated>
<author>
<name>grischka</name>
<email>grischka</email>
</author>
<published>2009-04-18T12:28:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=ea5e81bd6a3376232bf4747b2fa2e0a91c19b337'/>
<id>ea5e81bd6a3376232bf4747b2fa2e0a91c19b337</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>dos2unix</title>
<updated>2005-04-17T13:10:37+00:00</updated>
<author>
<name>bellard</name>
<email>bellard</email>
</author>
<published>2005-04-17T13:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=5556cf15656ad1e433ec20502411411e30a4cdc7'/>
<id>5556cf15656ad1e433ec20502411411e30a4cdc7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fib fix (grischka)</title>
<updated>2005-04-17T13:10:22+00:00</updated>
<author>
<name>bellard</name>
<email>bellard</email>
</author>
<published>2005-04-17T13:10:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=6144d433211b4c5ceb68d6ffa500d6d54c3a2d67'/>
<id>6144d433211b4c5ceb68d6ffa500d6d54c3a2d67</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>win32 merge</title>
<updated>2005-04-14T23:49:21+00:00</updated>
<author>
<name>bellard</name>
<email>bellard</email>
</author>
<published>2005-04-14T23:49:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.datenwolf.net/tinycc/commit/?id=4821702fb49c72216c307341dc3dfd5a3984cf83'/>
<id>4821702fb49c72216c307341dc3dfd5a3984cf83</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
