![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
|||||
|
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. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|