How . exe files work


 
Thread Tools Search this Thread
Top Forums Programming How . exe files work
# 1  
Old 07-15-2008
How . exe files work

SmilieHi

I work on a production server. We have some .exe files in our system, the source of these files are C++ programs that are stored in the development server. How these .exe work. Could somebody please tell that in detail.


Thanks a lot!!
Kanu
# 2  
Old 07-15-2008
Great Question.

the exe files have segments like .text, .bss , heap and stack se
text segment will store the code and functions
data will store the global vars
heap will store dynamic allocated mem.
stack will store local variables.

when you compile these programs the code is transfered to machine instructions in the .text segment and data is stored in data segment. stack and heap grow dynamically
according to their usage.

if you need more help ask specific Questions.

Thx,
Siva
# 3  
Old 07-15-2008
Thanks Swami! Smilie
Well this means that the .exe are the already compiled files which we can run without having C++ source codes.
Am I right .... ?
# 4  
Old 07-15-2008
Unlike windows, unix file extensions ( the part after the dot) do not necessarily mean anything.

To find out what a file is/does use the file command:
Code:
file /usr/bin/ls
file /usr
file /path/to/your/exefiles/somefile.exe

# 5  
Old 07-15-2008
Smiliehow do we pass the parameters in the .exe programs???
# 6  
Old 07-15-2008
exe file would have c/c++ programme containing main programme. while coding parameter like argv[1],argv[2].....soon might have been considered with appropriate logic...

You can pass parameters as,

exename param1 param2 param3.....

Hope this answers your question !!Smilie

Shafi
# 7  
Old 07-15-2008
Is this a windows box or a Unix machine Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run exe files in unix

Hi I have a open source tool called table text comparator Link to download that tool: http://www.nirsoft.net/utils/csv_file_comparison.html I wish to run this tool in our unix servers. In windows O.S i just have to unzip and i can use this tool by running the .exe file. So i want to know how... (6 Replies)
Discussion started by: Ganesh_more
6 Replies

2. Shell Programming and Scripting

Joining Two Files Does not Work as Expected

Hi, I would like some help with the above awk command. I am trying to use the join command to join two files, no luck. I need to put the second column from file2.txt into each matching field of file1.txt. It works OK up to the value of 1000 of the matching column (1at column in both... (13 Replies)
Discussion started by: yirgacheffe
13 Replies

3. Ubuntu

Apache - Files directive does not work

HI guys. when i configure Files in this way: <Files ~ "\.png$"> deny from all </Files> it works. but when defining in this way it doesn't work: <Files /var/www/test/file.png> deny from all </Files> directives are not inside Directory directive. Could someone help? (0 Replies)
Discussion started by: majid.merkava
0 Replies

4. Shell Programming and Scripting

help to parallelize work on thousands of files

I need to find a smarter way to process about 60,000 files in a single directory. Every night a script runs on each file generating a output on another directory; this used to take 5 hours, but as the data grows it is taking 7 hours. The files are of different sizes, but there are 16 cores... (10 Replies)
Discussion started by: vhope07
10 Replies

5. Linux

Strings does not work for big files

I was trying to calculate DBID of oracle database according to the topic Oracle in World: How to Discover find DBID and following number 2) mechanism specified there that is using of strings keyword. My unfortunately my oracle database datafile is so big that I could not use strings keyword for... (1 Reply)
Discussion started by: synthea
1 Replies

6. Shell Programming and Scripting

How to work with two files with awk

I have two files: The number of lines in both files are always same. I could get these specific lines from a huge data file, but what I want to do now is take first line of file1 which is 1 and print first line of file2 which is 'a' one time, similarly letter 'b' from file2 corresponding to... (14 Replies)
Discussion started by: calsum
14 Replies

7. UNIX for Dummies Questions & Answers

list exe files modified before certain dates

Can you please tell me how I can list all EXE files in a dir and Subdir which where modified say before 01/01/2006 (2 Replies)
Discussion started by: fremont
2 Replies

8. UNIX for Dummies Questions & Answers

.exe files

how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies

9. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies

10. UNIX for Dummies Questions & Answers

Running EXE files on UNIX

I'm trying to find out if a executible file created in visual basic will run in the CGI-BIN of a unix server. I see the C section but no mention of VB. Thanks Sean (1 Reply)
Discussion started by: seanstog
1 Replies
Login or Register to Ask a Question