Jump to content

Dev-C++

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
phantom3380

phantom3380

    Newbie

  • Members
  • PipPip
  • 15 posts
I know many will shake their heads, stroke their fine white beards and say "what is to be done with this boy still wet behind the ears", but what on earth is the point of the "clean" execution in Dev-C++? :confused:
Yea as it was writ: "Compile and Run" :p

#2
sea

sea

    Newbie

  • Members
  • Pip
  • 7 posts
Do you know how makefiles work?
Basically, if you use a fancy 'project' or whatever it's called in Dev-C++ then it usually compiles the code in sources, i.e.:
Each source file (.c file) is compiled into an object file (.o file), which is basically an unlinked executable. (It can't run)
So that the overall compile time is reduced, only the source files which have changed need to be recompiled.
Finally, all of the object files are combined and linked to generate the output executable file. (.exe on windows)
The 'clean' command removes all of the object files (.o files) and temporary bits that get generated, leaving you with a 'clean slate'.
This is only necessary if something goes wrong with timestamps and so on, or if you want things to be nice and clean before compiling.