Viewing a compiled executable file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Viewing a compiled executable file
# 1  
Old 07-20-2010
Viewing a compiled executable file

I've got a executable binary file (source code fortran77, compiled using gfortran).

I'm not sure this is even possible but I remember someone I knew was able to view the source code that created this binary file, i.e. he used a program that enabled him to see what the source code was.

Is this possible? If so what program could it be?

Thanks.
# 2  
Old 07-20-2010
Linux I assume. objdump can show what the program is doing. There are decompilers
which produce assembler code (google for disassembler). In general most of these kinds of tools are not very useful, especially for compiled code -> Fortran source.
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 07-20-2010
The problem with decompilers is that things like variable names, function names, class members, structure members, symbolic constants, and the like aren't preserved when source code is compiled into an executable; they all become offsets in memory or literal values. In decompilation, they just become generic names. Even the program structure may be altered by an optimizing compiler. This makes comprehending the structure and function of decompiled source code a mountain of detective work.
This User Gave Thanks to Corona688 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Viewing XLSB file in Unix

Hello, Does anyone know how to view an XLSB file in unix? Thank you. (1 Reply)
Discussion started by: narachaid
1 Replies

2. UNIX for Dummies Questions & Answers

Viewing a large file

Sometime I have to deal with very large log files and I cannot view them for analysis using more or vi. The attempts to open the files error out saying there is not enough memory. Is there any tool or method with which I can go through huge files? (2 Replies)
Discussion started by: rcchume
2 Replies

3. Programming

Finding the number of bits a executable was compiled

Hi, Can anyone tell me how to find out how many bits a c executable was compiled in? I am trying to do some investigation of running 32bit programs in 64bit systems. (1 Reply)
Discussion started by: Leion
1 Replies

4. Solaris

Executable compiled on solaris 10 not working on solaris 9

Hi I compiled an executable on Solaris 10 which creates semaphore ( semget) but it didn't work on solaris 9 , while it is executing sucessfully on solaris 10. It is throwing the system error that Invalid arguments ( system error 22) on solaris 9. the ldd for the executable on two servers is as... (4 Replies)
Discussion started by: ash_bit2k2
4 Replies

5. Programming

Which debugger is appropriate for the executalbe file compiled with make?

I ask a question about the executalbe file compiled with make. Which debugger is appropriate? I tried to use gdb. But it failed to give the code with 'list' command. Program received signal SIGTSTP, Stopped (user). 0x0000000000472621 in DivergeTreeLogLikelihood () (gdb) bt #0 ... (5 Replies)
Discussion started by: cdbug
5 Replies

6. Linux

gcc compiled executable not working across x86_64 linux platforms

Hi I compiled a hello world program on two different 64-bit Linux machines, named quimby and node0331. When I compile on quimby and run on node0331 I get a "Floating exception (core dumped)" error. But if I do it in reverse, things work fine. Here's my compilation on quimby: $ uname -a... (3 Replies)
Discussion started by: same1290
3 Replies

7. UNIX for Dummies Questions & Answers

viewing and searching large file

I need to search a very large file. 13g in size. i am looking for a record that has a value in the byte 4200 . how can i view the file or how can i search for value in the byte 4200? (1 Reply)
Discussion started by: Wrightman
1 Replies

8. Shell Programming and Scripting

Viewing the cron file

Hi All, I am trying to look into the crontab file present in /var/spool/cron/crontab. A file with the name of the superuser name is present there with the -r-------- permission. Even I am logged in using the same superuser id. But while am trying to cat that, its prompting permission denied. ... (2 Replies)
Discussion started by: rinku11
2 Replies

9. Programming

dbx error ("Executable contains object file compiled on ...")

Hi, We are trying to run dbx on a core file for which we have the original executable and libs, but not the source / object tree. We have recompiled the objects from the original source, but dbx complains that they were compiled at a different time, and refuses to read them: Object file:... (0 Replies)
Discussion started by: Sabari Nath S
0 Replies

10. UNIX for Dummies Questions & Answers

viewing are .tar.gz file

I have a dilema. We have a .tar.gz file that is 2.2 GB. I can't xfer to another machine with ftp, because ftp chokes on the 2 gb size. We can't uncompress the tarball either because it will blow any filesystem we have on this Sun box. Is there a way to view or even extract certain files from... (2 Replies)
Discussion started by: lawadm1
2 Replies
Login or Register to Ask a Question