The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Running UNIX commands remotely in Windows box from Unix box – avoid entering password D.kalpana UNIX for Dummies Questions & Answers 1 04-20-2007 05:24 AM
FTP script for sending a file from one unix directory to another unix server director raja_1234 Shell Programming and Scripting 1 11-30-2006 07:57 AM
Assembly vs C programming duoshock UNIX for Dummies Questions & Answers 0 09-12-2006 10:25 PM
Unix History Question: Why are filenames/dirnames case sentsitive in Unix? deckard UNIX for Dummies Questions & Answers 3 03-26-2005 01:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-08-2009
ac09 ac09 is offline
Registered User
  
 

Join Date: May 2009
Posts: 1
Unix assembly help

Hey guys, well I'm extremely knew to Unix so any help advice is very appreciated.

What I am trying to do is assemble a source code (Programming from the Ground Up: Chapter 3: Your First Programs)
The source code named "FINDING A MAXIMUM VALUE" is the code I am trying to link and run, but I just cannot seem to figure it out.

I understand each line of the source code, but the part that says use this command to assemble and link the code, I don't understand.

BTW I'm on a mac using the Terminal program.
Do I FTP the source-code files (text format) to my telnet, or does the source code go directly into terminal, same with the "link" command, thanks.
  #2 (permalink)  
Old 05-09-2009
TonyFullerMalv's Avatar
TonyFullerMalv TonyFullerMalv is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 730
You type your code into a file or download (via HTTP, FTP or even SSH using scp) the source code file, the exit.s file mentioned in the web page you mention.

You then run the assembler to produce an object file, the:
$ as exit.s exit.o
line in the web page, exit.o being the resulting object file.

You then link it with any supporting libraries and/or other code, the:
$ ld exit.o -o exit
line in the web page, exit being the resulting binary file..

The file exit is then a runnable binary which may be run by typing:
$ ./exit

Most folk go straight to high level language programming in something like C, Fortran or Java.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0