Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / OS Assembler

Author
Message
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 1st Jan 2011 03:32 Edited at: 1st Jan 2011 03:36
Hello all, i was wondering what the assembler in an Operating System does. I know the layers are hardware, firmware, assembler, kernel, shell. My dad is an expert programmer but not for windows, so his and I's guess is that an exe is just a bunch if assembly code, and then the OS gives the assembler the code, which converts it to machine code which is then run by the computer at the hardware level. Is this true? If not, what does the assembler do?

Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 1st Jan 2011 04:21
An OS doesn't necessarily 'have' an assembler. An assembler is just something that compiles assembly to machine code (and the linker creates the exe file).

Dextro
20
Years of Service
User Offline
Joined: 26th Feb 2005
Location:
Posted: 1st Jan 2011 04:53
"Assembly" is just fancy name given to readable machine language .
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 1st Jan 2011 05:15
I see, i get this from a wikipedia article that had a diagram thing. I was thinking that that is how programs can use dll's, so how do they use them?

Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 1st Jan 2011 05:18
Just to add to that.

Assembly for those that might be unsure is the 'human readable' text form of a CPU's actual instruction set. An Assembler translates this text form into a binary representation, aka the Machine Code that the CPU understands.

Kevin Picone
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 1st Jan 2011 05:30
Quote: "I see, i get this from a wikipedia article that had a diagram thing. I was thinking that that is how programs can use dll's, so how do they use them?"


It's easiest pictured as a master->slave relationship.

So the Program (Master), which may be Written in any language - Requests the address (location in memory) of a FUNCTION(s) within the DLL (slave) it wants to use. Once it has the address, it can call this function just as if it was built into the program.

You can think of a DLL as being just a collection of commonly grouped functions. The purpose of which is to allow other programs to use the functionally they enclose, without the program auther having to reivent the wheel each time.

Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 1st Jan 2011 19:47
That make a lot of sense, thanks!

Login to post a reply

Server time is: 2025-05-31 00:28:36
Your offset time is: 2025-05-31 00:28:36