Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old May 3rd, 2006, 2:40 PM   #11
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>but it's hard to getting started with all the debuggers, linkers etc.
I agree. Most of the complexity that comes with assembly language involves using the tools, not the actual language itself.

>Is Assembly just for extensions to C and other lanuage, or can it make Applications by itself?
Assembly can do anything you want it to do.

>And can it make bigger applications or just some small stuff, like calulate?
You can make large applications with assembly, but it takes a lot of organizational prowess to do it well.

>but I just can't find anything of ASM
A lack of resources is the biggest problem.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old May 3rd, 2006, 5:49 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You sound as if you haven't yet picked up on the fact that assembler is a mnemonic representation of the machine's natural language. It isn't an extension to C (or anything else), it's what C produces as an end product. All executable programs wind up as machine language at run-time. It hasn't turned out to be a small-time thang.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 3rd, 2006, 7:18 PM   #13
Wilheimer
Newbie
 
Join Date: Apr 2006
Posts: 13
Rep Power: 0 Wilheimer is on a distinguished road
You might want to try this URL
http://webster.cs.ucr.edu/
Wilheimer is offline   Reply With Quote
Old May 4th, 2006, 12:21 AM   #14
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,031
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by v0id
It's maybe not hard to learn the language, but it's hard to getting started with all the debuggers, linkers etc.

A hurry question:
Is Assembly just for extensions to C and other lanuage, or can it make Applications by itself? And can it make bigger applications or just some small stuff, like calulate?
An assembler is a program that converts source code (usually called 'assembly code') to binary code. This binary code is either an actual program (ie, directly executable), or an object file (which is in a mostly-finished stage, but needs to be 'linked' to form a complete program). Linking is done with a program called a 'linker', and (despite the impression terms like 'link' might give) does not mean one object file needs to be joined with other files. Rather, when a program is written, the programmer makes use of many memory references. These are not fixed (since the programmer has no way of knowing where in memory the program will be loaded when it is actually run), so often the assembler generates symbolic links. It is the linker's job to edit these (in fact, the term 'linker' is short for 'link editor'), replacing them with actual addresses. Also, if you are using more than one object file, the linker joins them, and makes sure that none of the addresses collide. This is a somewhat simplified explanation, but it's enough for now.

Anyways, to get back to your question, assembly is often used in conjunction with other languages. Many things are easier to express in a high-level language like C++, but certain things are easier to do in assembly, or can be made more efficient. Thus, you might see a game written almost entirely in C++, with some very speed-critical portions written in assembly. However, as the hardware gets faster and compilers get smarter, assembly is used less these days than in previous years. That said, if the hardware is capable of something, then it is certainly possible to write a program in assembly language to do it.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 4th, 2006, 8:34 AM   #15
v0id
Hobbyist Programmer
 
Join Date: Apr 2006
Posts: 155
Rep Power: 3 v0id is on a distinguished road
When i wrote "Extensions to C", i actually meant the HLA.
But thanks - i wasn't sure that ASM could write big programs.

Again, thanks everybody!
v0id is offline   Reply With Quote
Old May 4th, 2006, 8:52 AM   #16
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Many compilers actually produce assembly language as a required intermediate step. That is then fed to an assembler, which emits the necessary object or executable code. Obviously, it can be as large as any high-level language can produce.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:35 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC