Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-10

.ppu and .o files

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andy Sy

Upon compiling the freepascal compiler from cvs, I noticed a lot of .o and .ppu files generated in addition to the final executable. What is the difference between .o and .ppu files and can I delete them both to eliminate the clutter?

Reply by email

Peter Vreman
to Andy Sy
Upon compiling the freepascal compiler from cvs, I noticed a lot of .o and .ppu files generated in addition to the final executable. What is the difference between .o and .ppu files and can I delete them both to eliminate the clutter?

.ppu contains information for the compiler
.o contains object code used by the linker

See the programmers manual for more information

Reply by email

Alan Mead
to Andy Sy: Upon compiling the freepascal compiler from cvs, I noticed a lot of .o and .ppu files…

The .ppu are compiled units. You probably want to keep them hanging around, but it's not neccessary. If you delete them, the compiler simply needs to re-compile all the units each time you compile. If you leave them, I think it will only compile the changed units and the main program.

I think the .o files can be deleted.

-Alan

--- Andy Sy wrote 5 lines
Upon compiling the freepascal compiler from cvs, I noticed a lot of .o and .ppu files generated in addition to the final executable. What is the difference between .o and .ppu files and can I delete them both to eliminate the clutter?

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com

Reply by email

Ivan Montes
to Alan Mead

the .ppu/ppw files are the interface parts of the unit in a compiled form, while the .o/ow files are the implementation part of an unit or a program in it's compiled form. Those files (.o/.ow) are needed to perform the linking of the app.

Once you've compiled the compiler you don't need them. However you'll need the ones generated when compiling the RTL.

ciao, Ivan

Show quoted text 6 lines
--- Andy Sy wrote: > Upon compiling the freepascal compiler from cvs, I noticed a lot of > .o and .ppu files generated in addition to the final executable. > What is the difference between .o and .ppu files and can I delete > them > both to eliminate the clutter?

Reply by email