Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Which is better C or Assembly Language (ASM) for development ?

0
10 Posted

Which is better C or Assembly Language (ASM) for development ?

0
10

Assembly language is what the majority of commercial GB games use. One reason for this is that no serious C compiler has been available for the GB until GBDK was released. Another reason is that C is terribly inefficient. A C compiler can often generate 8 to 10 times more code compared to optimized assembly code. As GB ROM cart sizes get larger this makes less of a difference unless you are talking about ROM bank 0. ROM bank 0 is a major bottle neck for many commercial games. Some code must reside in ROM bank 0. Often the amount of code that must reside in ROM bank 0 is larger than a person expects until he gets deep into a large project. Commercial GB programmers often have a hard time fitting all the code required in ROM bank 0 when using highly optimised assembly code so using C provides even more of a challenge. Assembly code that uses the HALT command can save up to 5% battery power compared to a similar program written in GBDK even if the GBDK program uses HALT as well. The reaso

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123