473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Assembly Segments

I am trying to understand (and failing) how code segments work. I have the
following code:

segment .text

global _asm_main

_asm_main:

enter 0,0 ; setup routinepusha

Jul 19 '05 #1
6 2000
CTRL+Enter sent my mail pre-maturely.

So, as I was saying, I have this asm code that specifies the following code
segments:

..text
..data
..bss

Are these segment names actually coded into the .EXE, or are they just
something that my Assembler understands? I am using NASM, and GCC, and am
linking C objects in with some assembly from a tutorial.

TIA,
Jeremy

Jul 19 '05 #2


Jeremy Cowles wrote:

CTRL+Enter sent my mail pre-maturely.

So, as I was saying, I have this asm code that specifies the following code
segments:

.text
.data
.bss

Are these segment names actually coded into the .EXE, or are they just
something that my Assembler understands? I am using NASM, and GCC, and am
linking C objects in with some assembly from a tutorial.

TIA,
Jeremy


You are aware that this is comp.lang.c++?

Your question has nothing to do with C++ but everything
to do with assembler.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 19 '05 #3
> Your question has nothing to do with C++ but everything
to do with assembler.

Wasn't thinking, sorry.
Jul 19 '05 #4
Do you know of a good assembly group? The only ones i could find were
absoultly dead.
Jul 19 '05 #5
Jeremy Cowles writes:
Do you know of a good assembly group? The only ones i could find were
absoultly dead.


comp.lang.asm.x86

seems to be alive and well.
Jul 19 '05 #6
> > Do you know of a good assembly group? The only ones i could find were
absoultly dead.


comp.lang.asm.x86

seems to be alive and well.

Thanks!

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Coder | last post by:
I notice that MS says the version numbers have the following format: <major version>.<minor version>.<build number>.<revision> If you give a assembly version as "1.0.*", the two latest numbers...
0
by: keithb | last post by:
How to set up Treeview so that segments opened by user remain open until closed by user. Thanks, Keith
3
by: bilaribilari | last post by:
Hello, I have a huge application thats written in C and C++. The application crashes and I am trying to find a pattern to these crashes. I recently got my hands on the DrWatson log and the...
85
by: fermineutron | last post by:
Some compilers support __asm{ } statement which allows integration of C and raw assembly code. A while back I asked a question about such syntax and was told that __asm is not a part of a C...
8
by: karthik.infoguy | last post by:
Any one just let me know what are the different segments in a compiler and what data are stored in different segments????
5
by: pavi | last post by:
Hi, I want to understand how the C's executable a.out is organised into segments. Which segments the varibles are put into according to their declarations. which Linux commands are used to check...
1
by: phantom2850 | last post by:
hello friends, I recently attended 3 interviews, all three had similar questions... Where is const stored? what are diff segments? what is heap? where is it on RAM/ROM? what is stored in...
7
by: kr | last post by:
Hi All, Suppose I consider a sample program as given below:- #include<stdio.h> #include<stdlib.h> int i; int main() { char *test(int i); char *tmp = NULL;
0
by: aaragon | last post by:
Hello everybody, I have an interesting problem for which I still don't have a solution. Imagine that you're working with points in two-dimesional space, so the point class should be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.