Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:Well, what metric IS interesting?On 24/06/2024 16:10, Michael S wrote:Why do you believe that the size of the executable is interesting?But my project has much more than 34 modules. 164 modules compiled>
during build + several dozens in libraries.
Does that matter? My example is a smaller project, but I'm comparing the
rate of compilation not total time.
>
If you want a bigger example, yesterday I posted one involving 140 .c
files, total EXE size is 5MB (don't know .text as this is ELF format).
Why do you think you think 5MB is unusualMS claimed that my project was smaller than his. So I found a bigger one.
The 'size' command will tell you the text size, although the text sizeThe .text was also something introduced by MS.
is a meaningless parameter in modern virtual memory systems which
load pages on demand.
$ file /tmp/aAnd what does /that/ have to do with anything?
/tmp/a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=12944219f87c74b03ec19d1d693771e12416dd81, not stripped
$ size /tmp/a
text data bss dec hex filename
1257 548 4 1809 711 /tmp/a
$ ls -l /tmp/a
-rwxrwxr-x. 1 scott scott 8501 Jun 20 07:45 /tmp/a
When the average disk holds 1 TB, 5MB is not even in the noise.
Yes, it is during that same time period that people waiting for it to complete have to sit twiddling their thumbs.>By definition.
-O2 took just over twice as long as -O0.
>
But I guess every single example I come up with is 'exceptional'.
MaybeYou seem to be measuring the wall-clock time which is influenced by
what's exceptional is that I measuring the runtime of the compiler, and
not all sorts of other junk.
factors other than the size of the source file including other processes
running during your compile.
Les messages affichés proviennent d'usenet.