Welcome, Guest. Please login or register.

Author Topic: Data Structures Question  (Read 5303 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Pat the Cat

Re: Data Structures Question
« on: February 22, 2018, 03:43:56 PM »
All good answers... partly it depends on whether you are trying to analyze an existing data structure (which can be fiendishly difficult if you are trying to disassemble hex code) or start on designing and understanding your own data structures.

The basic, basic idea - if you design your data structures correctly (most C code has lots of DEFine statements or similar at the beginning) then the actual code becomes more straightforward to write.

Object Oriented Programming takes this the concept a little further, in that it usually has tools to adjust and edit "objects" (the data structure) so existing code doesn't need to be modified much if at all... very handy if you've got code you know is good, but the data structure / object format needs modification to make it compatible with some other application.

If you have the (rather old, mid 90s) developer pack, it has examples of typical Amiga structures like IFF (interchange file format) which is probably what most Amiga coders study first. Because, it's used by so many different Amiga applications!

This link is UNTESTED but looks OK from my end, for an ISO of that developer pack... I am confident it will have some examples (in C source code) of typical Amiga data structures.

https://archive.org/details/amiga-developer-cd-v1_1
« Last Edit: February 22, 2018, 03:45:43 PM by Pat the Cat »
"To recurse is human. To iterate, divine."

A1200, Vanilla, Surf Squirrel, SD Card, KS 3.0/3.z, PCMCIA dev
A500, Vanilla, A570, Rev 5, KS 1.2/1.3 Testbench system
Rasp Pi, UAE4ARM, 3D laser scanner, experimental, hoping for AmigaOS4Arm, based on Watterott Fabscan Pi