Cocos2d-assembly?

Hi, i’m currently just playing with the thought that could it be possible to make an assembly version of cocos2d-x c++ with g++ -S command and if i do it would it work.

You can disassemble any program and try playing with it. It really depends on what you want to do with the assembly code. Unless you want to write assembly for fun there’s no good reason I can think of to bother with it.

It is useful, however, for debugging (usually not from g++ -S, but rather from disassembly of the binary itself - and the various debug data formats for source mapping) and it’s especially useful for “extreme” optimizations.

A fun and useful utility on the web as of late is Compiler Explorer:
https://godbolt.org/

Also, if you want to learn assembly, or use assembly, I would probably start with something more simple like writing your own silly programs, or learning how to write a simple GRUB2-based bootloader.

2 Likes

Thak you very much, i will try these ideas. :smile: