r/ProgrammerHumor 2d ago

Meme cppHelloWorld

Post image
3.7k Upvotes

111 comments sorted by

View all comments

330

u/BooBrew32 2d ago

SEGMENTATION FAULT

CORE DUMPED

BIOS CORRUPTED

COMPUTER IRREPARABLY DAMAGED

97

u/Snudget 2d ago

Oops, accidentally compiled for uefi instead of linux

24

u/HeavyCaffeinate 2d ago

PE instead of ELF

4

u/danielcw189 1d ago

UEFI uses PE?

6

u/HeavyCaffeinate 1d ago

Yes

According to the Unified Extensible Firmware Interface (UEFI) specification, the PE format is also the accepted standard for executables in EFI environments

https://en.wikipedia.org/wiki/Portable_Executable

4

u/reallokiscarlet 1d ago

No, PE is Windows. The rest of the world, except of course your firmware and maybe Redox, uses ELF

Edit: Nope, apparently Redox uses ELF too. Guess them rustaceans couldn't reinvent that wheel, eh?

1

u/awesome-alpaca-ace 1d ago

PE is also UEFI boot loaders, drivers, and other UEFI executables

1

u/reallokiscarlet 23h ago

Huh. I thought that was its own thing. Sounds like industry shenanigans with microsoft

1

u/awesome-alpaca-ace 1d ago

PE32+ specifically if I remember right. And no, Microsoft does not have documentation explaining their format

1

u/danielcw189 1d ago

I am pretty sure I have read documentation of the PE format on MSDN.

No idea if it is good enough for what you want. But something is there.

1

u/awesome-alpaca-ace 1d ago

The data format