[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

>start learning assembly yesterday >understand the concept

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 1

File: 1487881828186.jpg (43KB, 480x451px) Image search: [Google]
1487881828186.jpg
43KB, 480x451px
>start learning assembly yesterday
>understand the concept of syscalls and registers
>aw yis
>such a haxor
>manage to understand and make a hello world on my linux partition using a syscall
>hold the applause
>try to do the same on Windows
>look for a table of syscalls for windows
>every version of windows has a different id for syscalls
>some versions have different syscall id between builds
what the fuck is wrong with Windows developers
>>
>>59727583
Microsoft doesn't exactly care about developing in asm. They just expect you to build everything with their compilers
>>
>>59729526
still, wouldn't that be a bitch to work with if you're the one responsible for developing the os?
>>
>>59729627
windows is mostly developed in c
>>
>>59729627
Use the compiler
Windows unlike Linux has a micro kernel so most things can probably be just written in c
>>
>>59729627
The only people who actually have to make windows work with asm are the engineers. After that, the lowest you will ever need to go is c. Maybe you will need to memorize all this shit, but I highly doubt it. What would you do?
>>
>>59730018
I've read Windows Internals, and it's not really a microkernel as such. It would be worse if it was. Also, macrokernels can be and are written mostly in compiled languages.
>>
In Windows, you don't really use raw syscalls or interrupts, it's all done by calling functions (which are technically C functions, but can be called from assembly by manually setting up the appropriate calling convention). DOS programming on the other hand does use BIOS interrupts as the main form of I/O (since it doesn't come with a C library, and compilers wanting to use one generally have to use static linking), and it's my understanding that that's more like how Linux syscalls work.
>>
>>59729859
>>59730018
fair enough
>>59730037
I'm not doing anything im just doing for the sake of learning.
>>59730389
but at that point wouldn't it make sense to just use c? or is there still a performance advantage to be had?
>>
>>59729627
>still, wouldn't that be a bitch to work with if you're the one responsible for developing the os?
Yes.
Someone post the ms dev chatlog about the menu compiler.
>>
>>59730932
>but at that point wouldn't it make sense to just use c? or is there still a performance advantage to be had?
There are rare cases - like in video codecs or interpreter loops - where really skilled asm programmers can utilize registers and other stuff in order to avoid branch prediction saturation and cache misses compilers would create.
Thread posts: 11
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.