From: "Miguel A. Ballicora" Newsgroups: comp.os.msdos.djgpp Subject: Function and File ordering and speed optimization Date: Tue, 06 Feb 2001 14:00:06 -0500 Organization: Michigan State University Lines: 17 Message-ID: <3A8049B6.7C7B7BB1@msu.edu> NNTP-Posting-Host: padmanab-51.user.msu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en,pdf To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Dear dgjpp programmers, I have seen on the documentation that the profiler (gprof.exe) can give an advice on how to sort the functions in the executable for speed optimization. It gives me a list with all the functions. How do I achieve that sorting on the executable? Do I have to place the function definitions in the same order in one file.c when I compile? Is djgpp going to follow that sorting? Do I have to turn on or off any optimization flag? I could not find anything about this in the documentation. Is it somewhere? Thanks, Miguel