I teach you a bit of GAS and about your processor.
you’re stupid if you run linux on a mac…
how the fuck did he get out of the editor???
i think that means you sodomize welsh farm animals
@IMPMAC that’s true but the C compiler also works to do that.
why are you using a GNU assembler if you’re on a mac…?
why the dislikes? this was great!
I wrote “Linux assembly”
first video: MAC OS.
Thank you SO MUCH for this tutorial, Ive been trying to find tutorials on assembly for mac for AGES.
i’m just saying that linux and unix are very similar so it may be a little useless.
lol you’re the stupid one and clearly don’t understand what linux is used for…
really great tutorial. keep it up! although I had to remove the underscores in “_main” (making it “main”) to make it compile on my ubuntu. also, you didn’t post the code in the description, but you don’t really have to anyway. cheers :3
as what +Nahiyan Alamgir said, binary is the only “language” that the processor can understand. (It’s just on and off signals, so not exactly a language)
The processor doesn’t understand assembly, it only understands machine code.
@macheads101: That doesn’t mean its foolproof. Compilers don’t have some kind of “master algorithm” that makes everything run at O(1). In many cases programmers will usually go over the assembly to make sure that things have been interpreted the way they want them to be.
Awesome tutorial but assembly isn’t something your processor understands. You fed processor instructions one at a time which are in binary. Assembly instructions are loosely text equivalent of the binary instructions which the processor understands. Assembler is responsible for compiling the instructions you write along with other extra features and turn them into binary which can be executed by processor.
@FunIsPhun hmm think twice before calling an in-animant object “gay”.
echo $? gives me a result of 139 no matter what :/
I lol’d so hard at this video, a pile of bullshit
I. love. you.
Thank you so much.
What if you own both a mac running linux? Would this mean you are a homosexual psycho-paedophile?
Why all the thumbs down? This helped me. I had to add a semicolon after _main, that’s all.
I think there is a lot of confusion of different bit sizes in computers (i remember when the Sega Dreamcast came out and everyone was calling it a 128bit system… hmmm, not really). Most consumer processors at the moment still use 32bit single precision floating point arithmetic, but have visualized 64bit memory addressing.
Thank you, you re the friggin man!
@macheads101 i think they actually have some empirical data to support the link between mac ownership and homosexuality. linux users have the highest instances of psychosis and pedophilia
I’m a bit confused, if someone can answer. Doesn’t the processor run Machine Code?
hey guys.. I need your help, please.
the commands don’t work at my terminal. I’ve tried everything: binutils, “Command Line Developer Tools for Xcode” … nothing works. I always get the same message:
clang: error: no such file or directory: ‘hello.s’
clang: error: no input files
you gotta give him credit (Especially for using GNU AS) .. also – it’s basically correct, if watered to help out the less fortunate
Xcode ships with the GNU dev. tools (i.e. GCC, etc.)
Where did you learn this i would like written examples. pease tell me where you found refrence to gnu assembly programming
+vitorix24 Luckily, I was using the GNU compiler for this; the *exact* same one you’d use on linux.
Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.
Send this to a friend