annotate TODO @ 3162:dc1eb82ffdaa

Von: Thomas Zimmermann Betreff: [SDL] [PATCH] Make static variables const Datum: Tue, 19 May 2009 19:45:37 +0200 Hi, this is a set of simple changes which make some of SDL's internal static arrays constant. The purpose is to shrink the number of write-able static bytes and thus increase the number of memory pages shared between SDL applications. The patch set is against trunk@4513. Each of the attached patch files is specific to a sub-system. The set is completed by a second mail, because of the list's 40 KiB limit. The files readelf-r4513.txt and readelf-const-patch.txt where made by calling 'readelf -S libSDL.so'. They show the difference in ELF sections without and with the patch. Some numbers measured on my x86-64: Before [13] .rodata PROGBITS 00000000000eaaa0 000eaaa0 0000000000008170 0000000000000000 A 0 0 32 [19] .data.rel.ro PROGBITS 00000000003045e0 001045e0 00000000000023d0 0000000000000000 WA 0 0 32 [23] .data PROGBITS 00000000003076e0 001076e0 0000000000004988 0000000000000000 WA 0 0 32 After [13] .rodata PROGBITS 00000000000eaaa0 000eaaa0 0000000000009a50 0000000000000000 A 0 0 32 [19] .data.rel.ro PROGBITS 0000000000306040 00106040 0000000000002608 0000000000000000 WA 0 0 32 [23] .data PROGBITS 0000000000309360 00109360 0000000000002e88 0000000000000000 WA 0 0 32 The size of the write-able data section decreased considerably. Some entries became const-after-relocation, while most of its content went straight into the read-only data section. Best regards, Thomas
author Sam Lantinga <slouken@libsdl.org>
date Wed, 03 Jun 2009 04:37:27 +0000
parents 4a28c7c985b2
children 7a9740b1c1a8
rev   line source
2777
6f260584df22 Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents: 2330
diff changeset
1
6f260584df22 Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents: 2330
diff changeset
2 1.3 release checklist:
3106
3fde47894732 Added a reminder for the jobs mailing list
Sam Lantinga <slouken@libsdl.org>
parents: 3081
diff changeset
3 * Create jobs@libsdl.org
3121
4a28c7c985b2 Reminder to implement landscape mode for iPhone
Sam Lantinga <slouken@libsdl.org>
parents: 3106
diff changeset
4 * Implement landscape mode for iPhone port
2864
fe8ea2b39aea Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2861
diff changeset
5 * Add higher precision timers for profiling
2777
6f260584df22 Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents: 2330
diff changeset
6 * Implement YUV texture support
2861
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
7 - in progress, software support is done, Ryan is working on OpenGL shaders
2777
6f260584df22 Adding SDL 1.3 release checklist, so we start getting a list of must-have features and bug fixes for a 1.3 release
Sam Lantinga <slouken@libsdl.org>
parents: 2330
diff changeset
8 * Implement desktop video mode change notification?
2921
3c45e98e0547 Don't forget OpenGL 3.0 support
Sam Lantinga <slouken@libsdl.org>
parents: 2911
diff changeset
9 * Add OpenGL 3.0 context support
2977
a0f4ffd9c2ae Icons with translucency are implemented
Sam Lantinga <slouken@libsdl.org>
parents: 2966
diff changeset
10 * Finish multiple display support
a0f4ffd9c2ae Icons with translucency are implemented
Sam Lantinga <slouken@libsdl.org>
parents: 2966
diff changeset
11 * Open windows on display that is selected when creating a window
2978
4c9130d66e2c Added a few things to the TODO list.
Sam Lantinga <slouken@libsdl.org>
parents: 2977
diff changeset
12 * Create testing plan - becoming more and more important...
4c9130d66e2c Added a few things to the TODO list.
Sam Lantinga <slouken@libsdl.org>
parents: 2977
diff changeset
13 - unit tests for each feature and combination with expected output
4c9130d66e2c Added a few things to the TODO list.
Sam Lantinga <slouken@libsdl.org>
parents: 2977
diff changeset
14 and actual output comparison.
4c9130d66e2c Added a few things to the TODO list.
Sam Lantinga <slouken@libsdl.org>
parents: 2977
diff changeset
15 * Public license for SDL_compat.c, tests, and SDL_main*
2861
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
16 * Verify mouse grab support
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
17 * Properly handle mouse grab with Vista DPI scaling
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
18 * Make sure the mouse is where it's supposed to be when un-grabbed
3062
e2bb8ab7b43f We need to figure out whether we should handle events on foreign windows
Sam Lantinga <slouken@libsdl.org>
parents: 3051
diff changeset
19 * Plan how to handle events on foreign windows
2861
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
20 * Add keyboard enumeration / name query API
2957
2c30a17edf11 Ryan doesn't like hung programs to lock up his system. Silly, huh?
Sam Lantinga <slouken@libsdl.org>
parents: 2945
diff changeset
21 * Implement NET_WM_PING and NET_WM_PID/WM_CLIENT_MACHINE (?)
2c30a17edf11 Ryan doesn't like hung programs to lock up his system. Silly, huh?
Sam Lantinga <slouken@libsdl.org>
parents: 2945
diff changeset
22 - http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#KILLINGWINDOWS
2965
5066298aa82a Maybe add a timeout for SDL_WaitEvent()
Sam Lantinga <slouken@libsdl.org>
parents: 2960
diff changeset
23 * Add a timeout parameter for SDL_WaitEvent() (?)
2995
b3f23a4b4547 Added more info for precise waiting in SDL_WaitEvent()
Sam Lantinga <slouken@libsdl.org>
parents: 2991
diff changeset
24 - http://lists.libsdl.org/pipermail/sdl-libsdl.org/2008-May/thread.html#65067
2988
e7dd24f2f890 Added keyrepeat to the TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2981
diff changeset
25 * Implement key repeat at the driver level
2991
f4d14219c2aa Implemented svn revision support
Sam Lantinga <slouken@libsdl.org>
parents: 2988
diff changeset
26 * Add name -> keysym and name -> scancode lookup functions
3051
Sam Lantinga <slouken@libsdl.org>
parents: 3006
diff changeset
27 * Fix building haptic system on win32
3064
044ccc2c7485 Suggestion from the mailing list
Sam Lantinga <slouken@libsdl.org>
parents: 3062
diff changeset
28 * Add always on top window styles
3065
a728b8b779d1 Added reminder for shaped windows
Sam Lantinga <slouken@libsdl.org>
parents: 3064
diff changeset
29 * Add video modes that have an alpha channel?
3081
4ccdf20bad6f Missing API function
Sam Lantinga <slouken@libsdl.org>
parents: 3065
diff changeset
30 * Implement SDL_RenderReadPixels() for screenshots?
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
31
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
32 Wish list for the 1.3 development branch:
1534
f02e673ffc5f *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1441
diff changeset
33 http://bugzilla.libsdl.org/
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
34
1895
c121d94672cb SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
Sam Lantinga <slouken@libsdl.org>
parents: 1621
diff changeset
35 * Add a way to register custom events
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
36 * DirectInput joystick support needs to be implemented
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
37 * Explicit vertical retrace wait (maybe separate from SDL_Flip?)
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
38 * Shaped windows, windows without borders
2861
25745ac3d785 Updated TODO list
Sam Lantinga <slouken@libsdl.org>
parents: 2777
diff changeset
39 * Multiple display support
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
40 * Add a timestamp to events
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
41 * Add audio input API
2330
3458c74b5fab So we don't forget to do this...
Sam Lantinga <slouken@libsdl.org>
parents: 1895
diff changeset
42 * Add modifier state to key and button events
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
43
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
44 In the jump from 1.2 to 1.3, we should change the SDL_Rect members to
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
45 int and evaluate all the rest of the datatypes. This is the only place
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
46 we should do it though, since the 1.2 series should not break binary
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
47 compatibility in this way.
150
df1d68818edb *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 2
diff changeset
48
df1d68818edb *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 2
diff changeset
49 Requests:
df1d68818edb *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 2
diff changeset
50 * PCM and CDROM volume control (deprecated, but possible)