I made the same game in Assembly, C and C++

preview_player
Показать описание
#programming #gamedev #cpp #assembly #x86

I made the same game in x86 assembly, C and C++ to see how they compare.

💭 All views are my own 💭

Рекомендации по теме
Комментарии
Автор

This reminded me of the time a colleague thought he could rewrite his C code in assembly to get more performance, what he learnt at the end was that the C compiler optimisation was much better than his assembly coding skills.

blaser
Автор

This makes the fact that Roller Coaster Tycoon was written in Assembly even more mind blowing.

adamschlinker
Автор

For his next trick, he writes it in transistors and binary

JustinMasayda
Автор

Admittedly, it's been some time since I last considered programming in C a "breath of fresh air" over something else 😂

undisclosedmusic
Автор

I’m 59 and wrote my first program in an assembly type language in 1977. We are truly standing on the shoulders of giants. I am an aerospace engineer, but still need to write code to automate engineering tasks. Visual Studio is my environment of choice because it makes my job so simple.

rickintexas
Автор

What makes compiler optimization so great is its not just a single bit of contributed ideas from a single person whose smart in the field of assembly, but its a collection of all the smartest techniques anyone could functionally think of to optimize your code, as a result the compiler is the culmination of every idea of almost every geniuses' demonstrably proven optimization technique, its basically the collective execution of every single engineering wizard in a singular binary who also knows exactly how to evaluate your code most efficiently almost all the time. (granted we assume all compilers do the same optimizations to low level machine code, which outside of edge cases and small processing differences that's pretty much true)

Spartan
Автор

I’m taking an assembly class right now. Really makes you appreciate c++

jaydenm
Автор

I was thinking about learning assembly, thank you for changing my mind

saksham
Автор

good video, short and straight to the point. Nice!

hugofoltin
Автор

He then made the same game in Unreal Engine and it was 140GB

Aethelia
Автор

Trying to wrap my head around how confused you would have to be to implement a linked list in assembly, or why you'd implement an allocator for a small dataset with a static maximum length.

khatharrmalkavian
Автор

You still code assembly faster than I do in python

sorryall
Автор

i just took a look at your code and for some reason the assembly one looks way cleaner and simlper than the c++ one, at least for me. congrats on the readability of the asm version

petacreepers
Автор

Instead of forcing the use of linked lists in assembly, I'd go for different approaches, sometimes as simple as resw.

lphane
Автор

I’m a bit lost as to why you would need linked lists for breakout. Breakout is a game that could be handled pretty easily using only the data segment to define your static array of bricks and player tokens. Biggest pain I foresee is the gameloop, graphics, and IO but none of that should require dynamic memory.

mattreigada
Автор

Great video, this is the kind of stuff I work with daily. How come you keep implementing linked lists? Would a normal array not work fine here? Linked lists are often more trouble than they are worth because of the memory overhead in each element and it is comparatively much more computationally expensive than a typical array.

jamesbutcher
Автор

One thing you did in your code that I've never thought about doing is writing out the function logic as a comment block under each prototype on the header file. I could see how useful that would be for other devs who don't want to drive into the specifics of every function, only what they do and return in an abstracted way.

coolbrotherf
Автор

As a programmer myself, I'm really impressed at your level of knowledge. Very entertaining too. Keep making videos :D

krafs
Автор

I thought I knew how to code a little at least, and then I watched this video lol! You’re a genius

CloudlessStudio
Автор

Many thanks aks for sharing your AMAZING project 👏👏👏🔥✌
Please consider making end-to-end tutorials for the whole project. 🙏
That will be extremely helpful for c cpp assemly learners.
Maybe more similar projects in the future
Many thanks in advance! 👍

Italya
visit shbcf.ru