25 February 2017, 13:46 | #1 |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
LVO tables in exec libraries
Does anyone know why the lvo tables are constructed as a list of JMP <address> instructions rather than just a simple list of pointers?
That would have saved 2bytes per entry, is there any advantage to the JMP approach? |
25 February 2017, 14:12 | #2 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
The advantage is that the function call becomes shorter, a single instruction on 68000 and 68010. If you had just stored an array of pointers you would've needed one more instruction of 2 bytes and one temporary address register per call on 68000 on 68010.
I don't know how many library and device functions are active on a typical Workbench installation, a thousand maybe, so the savings would've been just a couple of kilobytes, minus the above cost for all the software. |
25 February 2017, 15:35 | #3 | |
Registered User
Join Date: Jan 2017
Location: London, UK
Posts: 433
|
Quote:
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CDTV exec.library | Arnie | support.WinUAE | 19 | 18 February 2016 13:11 |
Wanted: P96 emulation.lib, rtg.lib autodocs, FD/LVO files | PeterK | Coders. System | 6 | 01 January 2015 19:59 |
debugging session with exec lib | pixel | Coders. Asm / Hardware | 4 | 20 May 2014 23:49 |
graphics.library private LVO's | AmiCoder | Coders. General | 12 | 30 December 2009 04:24 |
exec.library problem with VisualPrefs | oldpx | support.Apps | 4 | 29 August 2002 00:18 |
|
|