V
V
VityaDev2020-04-15 14:18:45
Programming
VityaDev, 2020-04-15 14:18:45

How to make a program that will compile data to exe?

Hello World! The question has already been raised, if that task is not tied to a specific language.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2020-04-15
@VITYUSHA

To understand what the exe format is, it is actually a container that stores both executable code and data in the form of icons, dialogs, and so on.

spoiler
5e96f06938cda111545108.png

Write your own collector and save the data in .exe
At the same time, it will be impossible to run it if there is ONLY data there.

R
Ronald McDonald, 2020-04-15
@Zoominger

No way.

D
Drno, 2020-04-15
@Drno

Archiver + self-extraction function?)

A
Artem @Jump, 2020-04-15
curated by the

How to make a program that will compile data to exe?
It's impossible.
Files with the .exe extension are simply a specific file format.
And compilation is already completely different - it is the creation of machine code from the source codes of the program, and has nothing to do with this format.
And write the data to a file without problems - the file format allows you to store any data, there is only a size limit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question