Re: C23 thoughts and opinions

Liste des GroupesRevenir à cl c 
Sujet : Re: C23 thoughts and opinions
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.c
Date : 01. Jun 2024, 11:37:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v3etlq$2o0sh$1@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
User-Agent : Mozilla Thunderbird
On 01/06/2024 02:39, Lawrence D'Oliveiro wrote:
On Thu, 30 May 2024 14:34:00 +0100, bart wrote:
 
On 30/05/2024 03:32, Lawrence D'Oliveiro wrote:
>
On Wed, 29 May 2024 13:58:20 +0200, Bonita Montero wrote:
>
I've got a small commandline-tool that makes a const'd char -array
from any binary file.
>
It seems to me it would be more efficient to use objcopy to turn that
binary file directly into an object file with symbols accessible from C
code defining its beginning and ending points. Then just link it into
the executable.
>
None of my compilers, whether for C or anything else, generate object
files.
 That’s too bad. All the good compilers, for languages like C and others
which are meant to execute efficiently, do.
What do you mean by 'are meant to execute efficiently'? Is that build-time or run-time of the resulting program?
In the latter case, whether it uses object files is irrevant.
For build-time, pointlessly generating a discrete object file will slow things down.
My compilers don't routinely generate object files, which would also need an external dependency (a linker), but they can do if necessary (eg. to statically link my code into another program with another compiler).
The compiler for my main language is a whole-program one. If it were to create an object file, it would be a single file; there would be no others to link to!
And here, makefiles also assume independent compilation of modules.
So it is makefiles that appear to be holding back advancement in this area, by requiring traditional module-at-a-time building, and requiring object file intermediates.
   C:\qx52>mm -obj qq
   Compiling qq.m to qq.obj
   C:\qx52>dir qq.obj
   01/06/2024  11:34           787,788 qq.obj
   C:\qx52>gcc qq.obj -oqq            # 'link'
   C:\qx52>qq
   Q5.2 Interpreter
   Usage:
           qq filename[.q]

Date Sujet#  Auteur
1 Jun 24 * Re: C23 thoughts and opinions26Lawrence D'Oliveiro
1 Jun 24 `* Re: C23 thoughts and opinions25bart
2 Jun 24  `* Re: C23 thoughts and opinions24Lawrence D'Oliveiro
2 Jun 24   `* Re: C23 thoughts and opinions23bart
3 Jun 24    `* Re: C23 thoughts and opinions22Lawrence D'Oliveiro
3 Jun 24     +* Re: C23 thoughts and opinions5Michael S
4 Jun 24     i`* Re: C23 thoughts and opinions4Lawrence D'Oliveiro
4 Jun 24     i `* Re: C23 thoughts and opinions3bart
5 Jun 24     i  +- Re: C23 thoughts and opinions1Lawrence D'Oliveiro
5 Jun 24     i  `- Re: C23 thoughts and opinions1Tim Rentsch
3 Jun 24     `* Re: C23 thoughts and opinions16bart
4 Jun 24      `* Re: C23 thoughts and opinions15Lawrence D'Oliveiro
4 Jun 24       `* Re: C23 thoughts and opinions14bart
5 Jun 24        `* Re: C23 thoughts and opinions13Lawrence D'Oliveiro
5 Jun 24         `* Re: C23 thoughts and opinions12bart
5 Jun 24          +* Re: C23 thoughts and opinions2Thiago Adams
5 Jun 24          i`- Re: C23 thoughts and opinions1David Brown
6 Jun 24          `* Re: C23 thoughts and opinions9Lawrence D'Oliveiro
6 Jun 24           `* Re: C23 thoughts and opinions8bart
7 Jun 24            `* Re: C23 thoughts and opinions7Lawrence D'Oliveiro
7 Jun 24             `* Re: C23 thoughts and opinions6bart
8 Jun 24              `* Re: C23 thoughts and opinions5Kaz Kylheku
8 Jun 24               `* Re: C23 thoughts and opinions4bart
8 Jun 24                +* Re: C23 thoughts and opinions2Kaz Kylheku
8 Jun 24                i`- Re: C23 thoughts and opinions1bart
8 Jun 24                `- Re: C23 thoughts and opinions1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal