在Linux OS中编译C程序后,它会创建一个可执行文件。是否可以打开此可执行文件? [英] After compilation of a C programme in linux OS , it creates a executable file . Is it possible to open this executable file ?

查看:73
本文介绍了在Linux OS中编译C程序后,它会创建一个可执行文件。是否可以打开此可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

After compilation of a c programme in linux OS , it creates a executable file . is it possible to open this executable file ?





我尝试了什么:



我不知道该怎么办,是不是可能与否。我在谷歌搜索但没有得到任何关于此的信息。



What I have tried:

I have no idea about how to do and whether is it possible or not . I searched on google but did not get any information about this .

推荐答案

可执行文件只是一个文件,其中包含可由系统执行的二进制数据。它是一个像所有其他文件一样的文件,一般来说(即如果访问权限允许)它可以像任何其他二进制数据文件一样打开并检查,前提是您用来打开它的软件可以将数据显示为原始二进制/十六进制数字或以分解的形式。



所以基本上,答案是是 - 但你可能无法识别它包含什么,因为它不是你输入的C 。可以对可执行文件进行反编译(在某些情况下)以重新创建兼容的高级语言,但是本机可执行代码可能会被高度优化,并且生成的高级代码可能与原始代码不相似。
An executable is just a file that contains binary data which can be executed by the system. It's a file like all others, and generally speaking (i.e. if access permissions allow) it can be opened like any other binary data file and examined, provided the software you use to open it can display the data as either raw binary / hex numbers or in a disassembled form.

So basically, the answer is "yes" - but you probably won't recognise what it contains as it isn't the C you typed. It is possible to decompile executables (in some cases) to recreate a "compatible" high level language, but the native executable code may be highly optimised and the resulting high level code may not resemble the original that closely.


这篇关于在Linux OS中编译C程序后,它会创建一个可执行文件。是否可以打开此可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆