Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to decode object files

Status
Not open for further replies.

rednewguy

Full Member level 2
Joined
Jun 3, 2005
Messages
123
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Activity points
2,413
how to decode .obj files

i am using Dev-c++ editor and it uses gcc compiler. I gave an instruction system("PAUSE"); This is obviously a linux command, but i am giving it in windows. What windows API will this instruction call into. How to find them and how to decode the object files.
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
637
Reputation
1,272
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
The C "system" function asks the host operating system to execute the specified command, so system("PAUSE") should do whatever your operating system normally does when you run the "PAUSE" command. In Windows, it probably calls the "system" function in msvcrt.dll.

I'm not sure what you mean by "decode the object files". If you want to see the assembler source code for your compiled C function, run gcc with the -S option.
 

    rednewguy

    Points: 2
    Helpful Answer Positive Rating

rednewguy

Full Member level 2
Joined
Jun 3, 2005
Messages
123
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,296
Activity points
2,413
echo47 said:
I'm not sure what you mean by "decode the object files".

What i meant to ask is "Is it possible to say what api's are called by my program by seeing the .obj file?"

thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top