General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
IgorTheLight
Low Level
comments
Comments by "IgorTheLight" (@igorthelight) on "Low Level" channel.
Previous
1
Next
...
All
I think you can write C code, then ask compiler to generate Assembler code out of it - now you could learn from it or modify ;-) Fast and tweakable!
102
Or just write them all in another text file, then stick that window to the right ;-)
2
@Slowly_Going_Mad Fair point!
2
Well... I love C#, but C would be more correct comparison - both are compiled to machine code. C# is compiled to IL (Intermediate Language) that has to run on "totally_not_a_virtual_machine" that is caller CLR (Common Language Runtime). You could make C code that is as fast as Assembler but you just CAN"T make as fast C# code. It's very important for drivers and real time applications with heavy CPU load but not so much important for all other types of applications ;-)
2
Yep! ;-)
2
@abuk95 I found an example and it was 124 lines (with comments). Still less code that initializing a Vulkan renderer and drawing a triangle (around 600 lines of C++).
2
But noone asks "why should I code faster?". I think it's a thing that corporations want you to do - increase you productivity! How many lines of code could you write in a minute? In the hour? Would you like to write +25% more lines of code and be 25% more efficient? Will that make your happier tho? ;-)
2
Well... Of course it would be harder that C ;-)
1
Short answer - you are basically calling a kernel function that could print some characters. For that thing to happen you should make some preparations. Just watch video and you will see that it's not as scary ;-)
1
@InsaneFirebat A standard out-file descriptor is a way of referring to the file handle that represents the standard output stream of the program. In most operating systems, this stream is represented by a file descriptor with a value of 1. When we set the standard out-file descriptor to 1, we are telling the operating system that we want to write the output of the program to the standard output stream. This is useful because many command-line tools and other programs assume that their output will be written to the standard output stream, and may not work correctly if this is not the case. About where to find it - google "Linux System Calls quick and easy". I'm not an Assembler programmer so I may mix some things up but I think that I did not ;-)
1
Most likely - just impatient ;-)
1
Because he is using Linux and Linux specific programs and Assembler system calls. For Windows it's a little bit different ;-)
1
People should start somewhere, right? ;-) Even with system calls it's already harder that C
1
Looks like it ;-)
1
Today you could just write C, then ask compiler to generate Assembler out of your input ;-) Now you can play around with Assembler!
1
It will not be 10 lines of code! ;-)
1
@user-zq8bt6hv9k Dude... you have to use Linux to do the same things that were shown in this video ;-) Also, APT is "Advanced package tool" - a main package management tool in Debian based Linus distros.
1
Previous
1
Next
...
All