Sponsored Content
Top Forums UNIX for Advanced & Expert Users Viewing a compiled executable file Post 302438750 by jim mcnamara on Tuesday 20th of July 2010 04:28:38 PM
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:
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
disassembler(3x)														  disassembler(3x)

Name
       disassembler - disassemble a MIPS instruction and print the results

Syntax
       int disassembler (iadr, regstyle, get_symname, get_regvalue, get_bytes, print_header)
       unsigned  iadr;
       int	 regstyle;
       char	 *(*get_symname)();
       int	 (*get_regvalue)();
       long	 (*get_bytes)();
       void	 (*print_header)();

Description
       The disassembler function disassembles and prints a MIPS machine instruction on stdout.

       The  argument  is the instruction address to be disassembled.  The regstyle parameter specifies how registers are named in the disassembly.
       The value is 0 if compiler names are used; otherwise, hardware names are used.

       The next four arguments are function pointers, most of which give the caller some flexibility in the appearance of  the	disassembly.   The
       only  function  that  must be provided is get_bytes.  All other functions are optional.	The get_bytes function is called without arguments
       and returns the next byte or bytes to disassemble.

       The get_symname is passed an address, which is the target of a jal instruction. If null is returned or if get_symname is null the disassem-
       bler  prints  the address; otherwise, the string name is printed as returned from get_symname.  If get_regvalue is not null, it is passed a
       register number and returns the current contents of the specified register.  The disassembler function prints this information  along  with
       the  instruction  disassembly.	If print_header is not null, it is passed the instruction address, iadr, and the current instruction to be
       disassembled, which is the return value from get_bytes.	The print_header function can use these parameters to print any  desired  informa-
       tion before the actual instruction disassembly is printed.

       If  get_bytes  is  null,  the  disassembler returns -1 and errno is set to EINVAL; otherwise, the number of bytes that were disassembled is
       returned.  If the disassembled word is a jump or branch instruction, the instruction in the delay slot is also disassembled.

See Also
       ldfcn(5)

								       RISC							  disassembler(3x)
All times are GMT -4. The time now is 11:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy