1)通过读取可执行文件执行2)编译程序 [英] 1)Executing by reading from executable 2)Compileing in a program
问题描述
两个问题。
1)有没有什么方法可以从可执行文件中读取然后执行我读过的
。
例如:
text
text
这是更多
text
::::: START EXE CODE :::
/ *可执行代码在这里* /
:::: :结束EXE代码:::
文本文本
是的
是啊
text
2)无论如何,我可以修改编译器的源代码,以便我可以将它包含在另一个程序中以编译其他文件
编程并将编译文件的输出放在由编译器调用的参数指定的
a位置的大文件中。这里
就是一个例子。
##我的PSUDO文件系统##
$$ fl.exe
/ * exe代码for fl.exe * /
&&%
现在我使用程序中包含的编译器。在我的
程序提示下输入:(其中cc是编译器名称)
:: cc myprog.c -o myprog.exe
>
如果一切顺利,这将导致:
##我的PSUDO文件系统##
$$ fl.exe
/ * exe代码for fl.exe * /
&&%
$$ myprog.exe
/ * exe代码为myprog.exe * /
&&%
我不确定这是否可行,但我' 我相信有些人会知道我在说什么,也许一些大师会知道它是否可以完成。
Nori
Two questions.
1)Is there any way that I can read from an executable and then execute
what I have read.
EXAMPLE:
text
text
this is more
text
:::::START EXE CODE:::
/* executable code in here */
:::::END EXE CODE:::
text text
yep
yeah
text
2)Is there anyway that I can modify the source code of a compiler so
that I can include it in another program to compile other files in that
program and place the output of the compiled files into a large file in
a location specified by an argument to the call of the compiler. Here
is an example.
##MY PSUDO FILE SYSTEM##
$$fl.exe
/* exe code for fl.exe */
&&%
Now I use the compiler that is included within the program. Say at my
programs prompt I enter:(where cc is the compilers name)
:: cc myprog.c -o myprog.exe
This would result in, if all was well:
##MY PSUDO FILE SYSTEM##
$$fl.exe
/* exe code for fl.exe */
&&%
$$myprog.exe
/* exe code for myprog.exe*/
&&%
I''m not sure if this is possible or not but I''m sure some people will
understand what I''m saying, and perhaps some guru will know if it can
be done.
Nori
推荐答案
fl.exe
/ * exe代码for fl.exe * /
&&%
现在我使用程序中包含的编译器。在我的
程序提示下输入:(其中cc是编译器名称)
:: cc myprog.c -o myprog.exe
>
如果一切顺利,这将导致:
##我的PSUDO文件系统##
fl.exe
/* exe code for fl.exe */
&&%
Now I use the compiler that is included within the program. Say at my
programs prompt I enter:(where cc is the compilers name)
:: cc myprog.c -o myprog.exe
This would result in, if all was well:
##MY PSUDO FILE SYSTEM##
fl.exe
/ * exe代码for fl.exe * /
&&%
fl.exe
/* exe code for fl.exe */
&&%
myprog .exe
/ * exe代码为myprog.exe * /
&&%
我不是确定这是否可行但我确定有些人会理解我在说什么,也许有些大师会知道它是否可以
是完成。
Nori
myprog.exe
/* exe code for myprog.exe*/
&&%
I''m not sure if this is possible or not but I''m sure some people will
understand what I''m saying, and perhaps some guru will know if it can
be done.
Nori
这篇关于1)通过读取可执行文件执行2)编译程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!