Just another language
SDL can be seen as yet another programming language, with its own rules, advantages and limitations…
- Rules:
- Encapsulation (processes own their data, no one else can modify)
- Inheritance (create a system/block/process type, use - specialized - instances)
- Advantages:
- Describe the entire system (Distributed over several CPUs, Running multiple communicating tasks)
- Limitations:
- Not as close to the native code (same order of magnitude between SDL/C than C/ASM)
As with any other language
- Avoid inline
- Use separate compilation and glue everything at link-time.