Re: Resources and Euphoria
- Posted by "Graeme." <hmi at POWERUP.COM.AU> Jun 05, 1998
- 786 views
>Graeme wondered about my bundling scheme: > >>I don't understand why you have to bind it twice. >>Surely you can just append the index info to the file >>in reverse order and just start reading backwards from >>the end ? > >It's possible, but files tend to be cached on the assumption that you = >will read in the opposite direction. As a result, I think you would lose = >some efficiency. > >But if I built the files as a linked list, in the form ... Linked lists are good, but if I understand your origional post correctly, the only reason you need to bind the file twice is to insert the length of the bound executable into the source code. If you store the offset in the last four bytes and write code that reads this value once, at program start up (lost time measured in milliseconds), the rest of it can be in any format you want. This removes the need for the programmer to re-edit the code for each application, and bind it twice and manualy enter the offset with every source update. Graeme ----------------------------------------------------