🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Brooke Paul Anderson Tue, 21 Jul 1992 11:09
Weird gcc effect when compiling a benchmark prog.
#385
Author: Brooke Paul Anderson
Date: Tue, 21 Jul 1992 11:09
8 lines
993 bytes
I was compiling a simple floating-point benchmark program, and I
noticed that it gave me different results depending on whether or
not I had a printf statement in the code.  The odd thing is that the
printf statement was entirely out of the timing loop, so it shouldn't
have any effect at all on the performance measure spit out by the
program.  Nevertheless, it has an effect.  Has anyone ever seen something
like this?  I can supply the code if people would like, so they can
test it -- the program is about 100 lines long.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads