Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

morikaweb

macrumors newbie
Original poster
May 22, 2010
12
0
I am going to start university in the fall and the programing course starts with Assembly. So is there such a thing as an assembly compiler for x86 Macs? Or am I once again stuck using windows?
 
I am going to start university in the fall and the programing course starts with Assembly. So is there such a thing as an assembly compiler for x86 Macs? Or am I once again stuck using windows?

GCC may be accessed from command line for this purpose.
 
I am going to start university in the fall and the programing course starts with Assembly. So is there such a thing as an assembly compiler for x86 Macs? Or am I once again stuck using windows?

I remember assembler from the days before we had compilers.
However, I'm surprised that they would start a programming course with assembler. I would think they would start with some form of C to at least get started then show what happens under the hood. I remember when I was job hunting in 1999 and had an interview and they asked me what do you do if your C code doesn't work? I said go look at the generated assembler code, which completely freaked them out and they lost interest. When I found a job, I mentioned it to the interviewer and he said "How else can you find strange little compiler bugs?"
 
Thanks all for your help all. I'm surprised assembly capability is built into xcode, I never thought to look there.

@ old-wiz
I too thought it strange starting with Assembly, but at least I have a limited background in programming. I plan to spend the summer learning assembly then it wont be hard come school.
 
Thanks all for your help all. I'm surprised assembly capability is built into xcode, I never thought to look there.

@ old-wiz
I too thought it strange starting with Assembly, but at least I have a limited background in programming. I plan to spend the summer learning assembly then it wont be hard come school.

I hope you are 100% sure they are teaching x86 assembly. Many schools pick a simpler assembly language, like MIPS (you would be hard pressed to find an assembly language harder to learn than x86, well okay, maybe not that hard, but it's CISC).
 
Last edited:
I hope you are 100% sure they are teaching x86 assembly. Many schools pick a simpler assembly language, like MIPS (you would be hard pressed to find an assembly language harder to learn than x86).

I'm speaking o the professor on the 17'th, ill know then. But even if they teach something simpler, I still want to learn assembly. I want to have a strong grasp of the fundamentals for when I go on to my masters and doctorate.
 
I'm speaking o the professor on the 17'th, ill know then. But even if they teach something simpler, I still want to learn assembly. I want to have a strong grasp of the fundamentals for when I go on to my masters and doctorate.

It's good you're planning ahead. I'm a 2nd year masters student in Computer Science and I never programmed in assembly after my 2nd year of undergraduate though. I reckon it's really the underlying concepts (loads / stores, jumps, branches, register operations, the program counter and the stack, probably missing some here ...) that is really important and not the assembly language itself.

Most research projects (when you get up to PhD and MS level) will use a simple assembly language like MIPS because the main goal is to demonstrate feasibility and any unnecessary complications in demonstrating this are undesirable. When they get turned into real products they tend to adopt more complicated instruction sets. One example of this is the RAW architecture, a tile based CPU architecture which used an augmented version of MIPS as its instruction set. When it was adopted as a commercial product (the TileGX) they changed the instruction set to a VLIW approach that is more complex. So key point: even doing research in architecture you might not need to know a complex instruction set.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.