Sujet : Re: question about linker
De : bc (at) *nospam* freeuk.com (Bart)
Groupes : comp.lang.cDate : 02. Dec 2024, 20:12:12
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vil0qc$3fqqa$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
User-Agent : Mozilla Thunderbird
On 02/12/2024 18:23, Janis Papanagnou wrote:
On 02.12.2024 16:24, David Brown wrote:
On 02/12/2024 13:24, Bart wrote:
[...]
>
That sounds like you have a very poor organisation of your files. [...]
A suspicion that I got as well (also from other posts of him).
Then you'd both be wrong. DB's remark was anyway a misunderstanding.
My projects have all relevant modules, usually measured in dozens, in the same folder.
If projects share the same library, then the library forms its own project with its own folder.
You consider that poor?
For distribution, I would use ONE source file. Here, I'll create one such file right now:
c:\cx>tm mm -ma cc.m
Writing cc.ma
TM: 0.08
It took 1/12th of a second to create an amalgamated source file containing everything needed (except a compiler) to build an EXE of my C compiler, including the shared backend sources, and including bundled C header files.
I can email it to you if you like; it's 0.6MB, or 30Kloc.
So, according to you, this is badly organised? Excuse me for struggling to see how a single file can be poorly organised!
BTW cc.m contains that project info I posted earlier.