Should I learn to program in C or ASM?

صفحة 2/2
1 |

بواسطة AxelStone

Prophet (3064)

صورة AxelStone

20-08-2020, 11:19

My suggestion should be use C, is more portable. You can start using Fusion-C.

بواسطة DarkSchneider

Paladin (942)

صورة DarkSchneider

20-08-2020, 11:41

Manuel wrote:

You can also combine: write performance critical parts in assembler and the glue code in C.

Bingo!

بواسطة gdx

Enlighted (5015)

صورة gdx

20-08-2020, 11:44

C is not more portable than assembler if you make games for MSX, SG-1000 and Colecovision.
Assembler is faster, economical in memory and more adapted for MSX. This is the best choice.

Assembler is not much more complicated than C if you have a good library. If you choose the C, you will still need to learn assembler.

بواسطة DarkSchneider

Paladin (942)

صورة DarkSchneider

20-08-2020, 11:51

The strcuture handling and programming logic is much easier, faster and modifiable (as you modify code and the compiler generates the asm for you) on C.
Modifying code on ASM takes much longer because if you change lines, then you have to "fit" again the whole.

بواسطة ARTRAG

Enlighted (6692)

صورة ARTRAG

21-08-2020, 14:03

All depends on what you want to do and from which knowledge of coding and of the msx systems you start.
If you are a newbie probably it is better to start with C (this version that is actively supported on this forum https://www.msx.org/news/development/en/fusion-c-is-available )
Once you have started to understand hands on how the msx architecture works, you could start coding in assembly.
Also in this case, an effective way to use ASM is within C programs for the time critical parts
C is usually more flexible and easier to modify

صفحة 2/2
1 |