⚙️Executable File
Also known as Executable, EXE File, .exe, ELF, Mach-O, PE File
A file that holds a program. You can start it and it runs.
Think of it like
It is like a toy that comes already built. You open the box and it is ready to play.
Example
Emma builds her game in C++. The compiler makes game.exe, and her friends run it without any of her source code.
Why it matters
It is how software reaches people who never see the code. It is also why you should only run executables you trust.
Definition
Example code
console
$ gcc hello.c -o hello
$ ./hello
Hello, world!Common mistake
Key takeaways
- 1Ready to run. No build step left to do.
- 2Built for a system. Each OS and chip needs its own.
- 3Trust it first. It can do anything you can.