Correct spelling.
[SquirrelJME.git] / assets / developer-notes / stephanie-gawroriski / 2017 / 06 / 28.mkd
bloba2a64d9f2ebdbdc126b91481832476db4ed14a99
1 # 2017/06/28
3 ## 09:32
5 So `Sections` will get a create if missing. Also since many executable formats
6 can have various different sections, I need a way to have something really
7 more powerful than an enum. There for example would be the windows resource
8 section, then for PalmOS there could be actual resource sections and such.
10 ## 09:34
12 Also, static fields can just be allocated into one given area. Pure constants
13 can go into the data section and be marked as such, while non-pure constant
14 ones are initialized at run-time via the static initializers sometime.
16 ## 09:38
18 This means that there will be a somewhat different way to lookup resources
19 based on the target system. For example on flat binary systems it can just use
20 a pointer to the resource data. But on say Palm OS it will instead generate
21 a bunch of calls which loads the resource and such in a managed input stream.
22 Well specifically, the `getResourceAsStream()` call is system specific. It
23 will handle the cases correctly.
25 ## 20:43
27 To handle cases such as Palm OS when it comes to resource usage, I can have a
28 basic counter used that will determine the section resource should be placed
29 in.