![Clickety Clack](/img/default-banner.jpg)
- 6
- 32 123
Clickety Clack
เข้าร่วมเมื่อ 29 ก.ค. 2020
A random smattering of coding video's for you enjoyment
How do JIT Compilers Work
The video delves into the inner workings of JIT (Just in Time) compiles and demonstrates a toy example.
Resources:
github.com/149-code/jit-calculator
www.pypy.org/posts/2009/03/jit-bit-of-look-inside-7472130507462677287.html
Resources:
github.com/149-code/jit-calculator
www.pypy.org/posts/2009/03/jit-bit-of-look-inside-7472130507462677287.html
มุมมอง: 802
วีดีโอ
Instancing in OpenGL (with lots of cubes)
มุมมอง 3K2 ปีที่แล้ว
#opengl A reflection on how I optimised a minecraft clone I made. Source code: github.com/149-code/minecraft-clone
Crash Course on writing interpreters
มุมมอง 1242 ปีที่แล้ว
This is a video documenting what I leaned about writing interpreters and parsing programming language. Example Code: github.com/149-code/psc
Computer Graphics: Overview of the rendering pipeline
มุมมอง 7583 ปีที่แล้ว
Short video where I give an overview of computer graphics. Part of a series I'm trying to do (if I stop procrastinating) on OpenGL.
x86_64 ASM for MacOS Part 2: Structs, Functions, Loops and Arrays
มุมมอง 1.8K3 ปีที่แล้ว
Follow up from part 1 of this series on my channel. Feedback is always appreciated and sorry for not uploading this video, I'm really bad with procrastination.
x86 64 Assembly Tutorial for Mac OS, Part 1: "Hello, World"
มุมมอง 26K4 ปีที่แล้ว
The first video in my series on assembly language for mac os. Also I have not yet made the video about how to install NASM and ld but I promise i'll do that soon Additional Links: NASM docs: www.nasm.us/doc/ Background music: th-cam.com/video/hQT6WMJ-Fco/w-d-xo.html
Very disorganized!
2:30 the percentage barely decreased because the compiler was optimizing the bs you did... but after you moved the calls there was nothing to optimize. That's one possibility, but likely it's the sporadic load within the calls to opengl... one thing I've noticed about opengl and sdl is they are really fucking slow in general, meaning it was probably the latter.
any recommendations on books for asm on macOS? I'm using a 2015 mac book pro running on monterey. I was trying to find a torrent for the book "core assembly language for the mac" but I haven't find anything.
Love that breakdown! What is that profiling software called, please?
Love everything about the video but I think the background music is a bit distracting and unnecessary
nano hello.asm15:34
better than my cs lectures thanks a lot ❤
what is the font you show the code snippets in?
i think it is fantasque sans mono
@johnd942 0 seconds ago What's with the constant 'WAVING' a pencil around; so distracting! I had to give up watching. Also, start off with a blank sheet and take the viewers along with you as you create. Learn to teach 'must know' material rather than 'nice to know' material. Good luck!
Awesome, worked second go! Thank you so much to the folks commenting below. On MacOS used: "ld -e _main -static first_asm.o -o first_asm.out"
thank You. this helped me, as a beginner
For those who get the following error: ld: warning: alignment (1) of atom '_main' is too small and may result in unaligned pointers ld: warning: pointer not aligned at address 0x100003F9D ('main' + 12 from hello.o) ld: unaligned pointer(s) for architecture x86_64 just type this command on terminal (I did this on macOS Ventura 13.4.1): ld -e _main hello.o -o hello -static -demangle -macosx_version_min 13.4.1 -L/usr/local/lib -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
This worked for me. Thanks!
by default, nasm starts with a _start function or start i can't remember for sure but smh like that
if you're having this error warning: "alignment (1) of atom '_main' is too small and may result in unaligned pointers" just add *ld -macosx_version_min 10.7* when compiling and you're good to go
I am currently walking this road, and you've really nailed it! Thanks for the excellent video. OpenGL is miserable 😂.
I love you very much thank you thank you thank you you saved my project please kiss me
Is the #exit a value or still an operand just confused as to which part is with. And the operand next to the #mov does that mean the operands don't have to be all in one line down?
Why is write value 0x200004? Shouldn't it be something like 4?!
It essentially the system call id for write in 64 bit space. It would be 04h in 32 bit space.
Does anyone know why I get this error? :: warning: alignment (1) of atom '_main' is too small and may result in unaligned pointers
Really good explanation!
Hi! Really cool video! Pls could u tell us which OpenGL standard u are using?
thanks for making these videos
ld: warning: No version-min specified on command line Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for inferred architecture x86_64 ld -v 10.0.1 unlike yours 11.0.3
same
@@losimen Значить дорога в лінукс
@@hytryi_huy у тебе макбук М1?
@@losimen macbook pro 2013 з одним лінуксом
Super helpful!!
so... how do install it?
Nice
For anyone how have a problem with ld "Undefined symbols for architecture arm64" "ld: symbol(s) not found for architecture arm64" try make it like that: ld -e _main -macosx_version_min 10.8 -arch x86_64 test.o -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem -lSystem -no_pie
Where is your playlist for this series?
Thanks
Hey brother some way to contact you
Clickety Clack Clickety Clack I have now: Subscribety Clack Video was amazing srly
In case you have the following error "ld: library not found for -lsystem", change your command to "ld -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem yourfilename.o". Basically, you are adding the path "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib" before the -lsystem. You need to substitute the "yourfilename.o" with the name of your own object file.
use "cc" instead of "ld". It automatically links with the appropriate libraries.
its crazy how ive been trying this and it just worked after roughly 8 hrs. still, BIG THANK TO YOU THANK YOU THANK YOU THANK YOU
the nicest and clearest intro to assembly that I've found so far
You didn't search a lot, did you?
Can u make more asm
Can you just take my assembly professors salary!? I learned more in this 20min video than I have in a whole semester of my prof knowing the bare minimum and having no idea how to teach it.
it says here ld: library not found for -lSystem what to do?
You probably have a new version of MacOS because I encountered the same problem. Replace it with this command ld -e _main -static [INSERT FILE NAME HERE].o -o x without the brackets ofc
@@_jp_0966 THANK YOU!
@@_jp_0966 it works!, Could you please explain why you need to use that command?
This is so good! And usually it’s hard to find good info on mac assembly
excuse me I trying to compile but I i got the following error-> ld: library not found for -lSystem... what I can do?....
hey nice video but I get ld: library not found for -lSystem error, pls help
You explain things really well, I'll sure be happy to see more videos when you have the time
he was procrastinating
Hey man could you make those videos about downloading everything you talked about to get it up and running, nasm, etc would be so grateful
Holy shit the return of the king
why is he so damn cracked
a long time broo . Fighting !!
can you put subtitles in your video. Thanks
Pretty Coolllll
I got error: ld: library not found for -lSystem
Could be late to the game here but if are on Big Sur or higher add -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib. Also make sure you have the Xcode command line tools intalled. Your command will be; ld ./hello.o -lSystem -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
@@kenhawkins6662 Just made my day
Helped a lot, thanks <3
This was a great video! I would love to see more! A side note for those having trouble compiling: I found for me that ld -lSystem hello.o was NOT sufficient. I got some error messages. What did work was typing ld -macosx_version_min 10.13.0 -lSystem hello.o And of course if you want to name your own executable file because you're bored of a.out you can type instead: ld -macosx_version_min 10.13.0 -lSystem -o hello hello.o (Then you just need to type ./hello) :) If you're mac is older than mine just replace 13 with your operating system.
Please make more videos!!!!!!!
hello Dude, you are very strong for explain and you video help me so much . TY for dis video really, you are good man ;)
This is super clear. Keep up the good work.
no