You are not logged in.

#1 2013-01-02 01:40:36

leetow2003
Member
Registered: 2012-04-08
Posts: 25

How to get and use segment address in linux?

I am a beginner about assembler in linux,
I use as and ld tools to compile coders,
but I don't find use segment address in codes,
for example DS and SS.
I want to know  how to get and use segment address
in linux

Offline

#2 2013-01-02 22:46:17

chris_l
Member
Registered: 2010-12-01
Posts: 390

Re: How to get and use segment address in linux?

Aren't DS and SS flags used for 16 bits assambly only?

On 32bits you don't use them as segment  registers, and on 64bits you don't use them at all.

They are not necessary to access memory areas, thanks to the flat model.

Read more http://en.wikipedia.org/wiki/X86_memory_segmentation


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

Board footer

Powered by FluxBB