image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 17th, 2006, 01:20 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
visons is on a distinguished road
compile assembly code

when i try to compile assembly though the bash terminal i use the gas command and it tells me no command found. i am learning as i go. what i am trying to do is assembly code for a microcontroller that i have to use for class but even though i have written code i can't seem to compile it
Reply With Quote
  #2  
Old September 18th, 2006, 09:12 AM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
Use the "as" command instead of gas. In the terminal, type "man as" for more information about the options and such.
Reply With Quote
  #3  
Old September 18th, 2006, 09:22 AM
lurk's Avatar
Mitä?
 
Join Date: Mar 2002
Location: Land o' skeeterz
Posts: 2,076
Thanks: 0
Thanked 0 Times in 0 Posts
lurk is on a distinguished road
If it is for a microcontroller you will need to install a gcc (well gas which is part of bintools IIRC) as a cross assembler. The version that comes with XCode is only for x86 or PPC depending on which on is used.
__________________
Wenn ist das Nunstruck git und Slotermeyer? Ja!...
Beiherhund das Oder die Flipperwaldt gersput!
Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly gcc on Mac question. chrislee8 Software Programming & Web Scripting 4 August 6th, 2004 10:11 AM
G4 assembly question palott Software Programming & Web Scripting 0 October 3rd, 2003 08:08 PM
PPC assembly lethe Software Programming & Web Scripting 0 August 4th, 2002 01:41 PM
Compile AltiVec code in OS X? rharder Software Programming & Web Scripting 9 April 17th, 2001 05:55 AM
Compile Source Code to Cocoa? ITz The MaN Mac OS X System & Mac Software 0 October 15th, 2000 07:33 PM


All times are GMT -5. The time now is 04:18 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.