|
|
x86 Assembly Language
|
|
|
|
Forum Regular
Join Date: Feb 2007
Location: surrounded by dogs
Status:
Offline
|
|
Greetings.
I'm a college student, blah blah blah, due to my chemistry research I'm pretty adept with terminal but I'm just beginning with xcode.
At any rate, my systems programming class uses C assembly language and the professor is somewhat dimwitted about Linux/Unix/Mac/anything other than XP (which is disappointing for a CS professor, anyway). He wants us to use MS Visual Studio because that's all he knows how to use, but I'm without another operating system on my macbook. I can do my assignments in campus computer labs, but it seems silly to do that when I'm running on Intel architecture already.
Any advice/tips for me? I've already done Python, Java, Perl, and C++ from my trust terminal, I'd hate to give up now.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status:
Offline
|
|
|
"The natural progress of things is for liberty to yield and government to gain ground." TJ
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Sep 2005
Location: Rochester, NY
Status:
Offline
|
|
You can't get cheap edu pricing on XP and Parallels or VMWare?
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Feb 2007
Location: surrounded by dogs
Status:
Offline
|
|
Through my school the only software discount I can get is $100 for the Vista upgrade.
Through JourneyEd I can get XP full version for $200, and through Apple I can get the academic version of Fusion for $40 with 2-3 week shipping.
If there's no way to do it through the unix backside of my macbook, I'd rather use the computer lab computers for my assignments than spend $200+. I'm a pretty cheap person, sometimes it's a necessity.
|
|
|
|
|
|
|
|
|
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status:
Offline
|
|
nasm is available for OS X.
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
You can absolutely program in assembly from the command line. The GCC assembler is called as.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Sep 2008
Status:
Offline
|
|
Maybe it is time to switch places with the prof, he obviously does not know
about the virtue of C programming. perhaps for Christmas you should get him
'The C Programming Language' by K & R, it is a white book with blue letters
used to be the BIBLE of C programmers, what the hack happened!!
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
There's no such thing as "C assembly language". You're either programming in C, or assembly.
That said, you can do either in OS X. If you guys are just programming command-line utilities in C, you can write them so that they compile cleanly and work properly on both Windows and any *nix flavour (OS X included). I've gotten by using my Mac for everything in my CS program -- except for the occasional course where we had to use Visio, or MS SQL Server, or whatnot.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
The K&R book above was what I started with when I first learned C. What you have to understand is how a compiler works.
1) User writes code in C (or whatever)
2) Compiler turns C into assembly
3) assembler turns assembly into bytecode (instructions, generally 32-bit or 64-bit "words" that can be loaded)
You can easily skip step 1 and go to step 2 directly. x86 is actually a pretty crappy processor for learning assembly since it has all these giant meta-instructions that you wouldn't see in a simpler architecture. You can ignore them of course and pretend you're coding for an 8086.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|