Mercurial > pub > dyncall > dyncall
annotate ToDo @ 321:72b450cc3be8
- cosmetics/cleanup
author | Tassilo Philipp |
---|---|
date | Sat, 16 Nov 2019 00:14:47 +0100 |
parents | 9f2aff560fa7 |
children | 8b0fc583ce62 |
rev | line source |
---|---|
278 | 1 1.1: |
0 | 2 ---- |
295 | 3 - plain_cpp only supports windows; fix |
286 | 4 - ./configure on macOS does not pass CFLAGS etc.. to Makefile.config |
256
7520e2260097
- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane
Tassilo Philipp
parents:
250
diff
changeset
|
5 - support platforms without shared libraries so they can be built by just typing `./configure;make` (e.g. minix < 3.2.1) |
7520e2260097
- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane
Tassilo Philipp
parents:
250
diff
changeset
|
6 * also make sure minix with shared library support builds and works in general (>= 3.2.1) as well as ELF on Minix (>= 3.2.0) to begin with (as that's the base, and we only test on 3.1.8 so far) |
201 | 7 - dyncall supports calls to functions where prototype exists (with and without varargs); however not when no |
8 prototype exist (e.g. just calling some pointer), without any declaration... even possible in C, as one has | |
9 to cast to the function type? need to support? | |
10 | |
165
572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
cslag
parents:
159
diff
changeset
|
11 |
155 | 12 - dyncallback's "stack_cleanup" can be removed from non x86 impls... test if they still work |
165
572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
cslag
parents:
159
diff
changeset
|
13 - target a minimum c version, for use with -pedantic, etc.? Right now we use e.g. extensions |
572aff021627
- file name/layout cleanup, removed "-att" from x64 .S filenames, as unnecessary and also misleading
cslag
parents:
159
diff
changeset
|
14 for anon structs, etc. |
86 | 15 - the CallVM-free functions are per VTable, however the latter can be changed out |
16 at runtime... which basically changes potentially the deallocator... | |
17 same goes for functions setting the mode. think about how to make this safer - currently | |
18 we have a higher flexibility and we need to potentially clean up from the mode we are in, | |
19 however, this is open to misuse | |
78 | 20 - check all vararg calling conv implementations if they promote correctly |
21 (e.g. float to double); we used to not care as it was the user's job to | |
22 think of that, but we allow users to use ArgFloat, etc. on "..." now, | |
23 taking care of the promotion; so it should be consistent all across the | |
24 implementations -> also write testcode specifically for that | |
0 | 25 - autovar was never really pushed all the way through and still plays second |
9 | 26 fiddle to dyncall_macros.h, clean this all up, eventually (Tassilo: for now, I |
27 removed out of sync files to avoid confusion; but still probably duped code) | |
306
9f2aff560fa7
- todo update reflecting mips softfloat status more precisely (as only lacking for mips64/n32 callconv)
Tassilo Philipp
parents:
295
diff
changeset
|
28 - ppc32 callback fixes on bsd @@@ |
69 | 29 - add portable "make install" |
30 * make install should also install manpages | |
0 | 31 - mailing list announcements (html email?) |
32 - fix for NDS: | |
69 | 33 * ARM: |
104
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
100
diff
changeset
|
34 - callback_plain retval wrong (not only platform), area on stack where |
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
100
diff
changeset
|
35 it's stored is probably not zeroed, so half-words, etc., come with garbage |
69 | 36 * THUMB: |
37 - ellipsis (might be test itself, not respecting fixed part of args) | |
104
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
100
diff
changeset
|
38 - callback_plain retval, see above under ARM |
69 | 39 - callf |
24 | 40 - support Solaris11 CFLAGS with -D_FILE_OFFSET_BITS=64 |
256
7520e2260097
- added to configure some detection on how to compile .s/.S with --noexecstack (or similar), as compilers' defaults are often insane
Tassilo Philipp
parents:
250
diff
changeset
|
41 - make sure selinux works (esp. regarding NX bits) |
54 | 42 Daniel has a patch for it, if needed, implementing allocwx with two memory blocks, one for w^x, mmaped to one for r|x |
68 | 43 - support /SAFESEH on cl/win32 |
83
54930a037e8a
- PPC64 single-precision float fixes for more than 13 float args (thanks Masanori!)
cslag
parents:
78
diff
changeset
|
44 - test code functions should be in .so files, optionally, so the suites can directly |
54930a037e8a
- PPC64 single-precision float fixes for more than 13 float args (thanks Masanori!)
cslag
parents:
78
diff
changeset
|
45 be used to test dycnall bindings |
54930a037e8a
- PPC64 single-precision float fixes for more than 13 float args (thanks Masanori!)
cslag
parents:
78
diff
changeset
|
46 - pkg-config support? |
90 | 47 - quadmath support (long double) |
117 | 48 - add tests using alloca(), as this might depend on the frame pointer being correctly |
49 set; we don't check for this, currently, at all | |
0 | 50 |
51 portasm: | |
52 -------- | |
53 - add solaris support for x64 | |
54 | |
55 dyncall: | |
56 -------- | |
288 | 57 - merge arm32_thumb_{gas/apple} and include thumb support for portasm |
58 - x64 verification: return values are passed via RAX and RDX, and XMM0 and XMM1. | |
146
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
59 - find big endian arm box (also hardfloat), e.g. cubietruck: http://blog.netbsd.org/tnf/entry/working_arm_multiprocessor_support |
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
60 - test if armhf/thumb is actually working... pulls in arm mode code in dyncall_callvm.c |
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
61 - dyncall_call_mips_n32.h and dyncall_call_mips_n64.h are pretty much the same, share code |
0 | 62 - support for return values: aggregate return values |
63 - support for argument values: structures, half-precision, vector types, long double | |
288 | 64 * make sure that struct support for ellipsis calls are not forgotten (copy everything by value) |
0 | 65 - consider automatic type-promotion for arguments passed through DC_CALL_C_ELLIPSIS_VARARGS; |
66 this would make it easier to just pass arguments instead of having to know about the C | |
278 | 67 type promotions (this is partly done, see todo-item above under 1.1) |
0 | 68 - syscalls for x64 |
69 * bsd | |
70 * linux | |
71 - other syscalls | |
135 | 72 - test MIPS32 eabi big endian (current port works on psp, which is little endian) |
132
b0cca984c740
- manual update, started splitting platform overview in EP and EL for some platforms
cslag
parents:
129
diff
changeset
|
73 - implement MIPS64 N32 (gcc -mabi=n32); both, little and big-endian (looks like NetNBSD on and |
b0cca984c740
- manual update, started splitting platform overview in EP and EL for some platforms
cslag
parents:
129
diff
changeset
|
74 EdgeRouter lite uses this: https://blog.netbsd.org/tnf/entry/hands_on_experience_with_edgerouter) |
306
9f2aff560fa7
- todo update reflecting mips softfloat status more precisely (as only lacking for mips64/n32 callconv)
Tassilo Philipp
parents:
295
diff
changeset
|
75 - MIPS64 n32 softfloat support (-msoft-float) |
129 | 76 - implement MIPS64 EABI (gcc -mabi=eabi); both, little and big-endian |
141 | 77 - support for Minix/arm |
146
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
78 - improve ellipsis test: |
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
79 * test not just with one fixed arg, to also simulate alignment problems |
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
80 * test return values |
0ab08c1541f0
- fixed armhf ellipsis calls, were ignoring spill area
cslag
parents:
145
diff
changeset
|
81 * convert from c++ to c, to have it also on plan9, and more portability |
0 | 82 |
83 dynload: | |
84 -------- | |
288 | 85 - RTLD_LAZY in darwin, why not in unix? |
244 | 86 - dlGetLibraryPath: dl_iterate_phdr() used on OpenBSD, but not available on version < 3.7 |
0 | 87 - bug: test/nm crashes on qemu mips linux o32 debian etch |
88 - test/resolve_self crashes/asserts on windows and bsds | |
89 - rename SymsInit to InitSyms and similar for cleanup function to reflect naming | |
90 in dyncall | |
91 - get rid of Dl_info and friends (_GNU_SOURCE) in dynload/dynload_syms_elf.c | |
92 for implementation of dlSymsNameFromValue(..) | |
93 - check if PSP can support dynload (missing elf.h, dlfcn.h, etc.); fixup readme if successful | |
84 | 94 - some functionality like java's System.mapLibraryName('name') might be helpful? |
288 | 95 - Failed On Open Solaris 11: |
96 In file included from dynload_syms.c:28: | |
97 dynload_syms_elf.c:56: error: syntax error before "Elf_Dyn" | |
98 dynload_syms_elf.c:56: warning: data definition has no type or storage class | |
99 dynload_syms_elf.c: In function `dlSymsInit': | |
100 dynload_syms_elf.c:155: error: `pDyn' undeclared (first use in this function) | |
101 dynload_syms_elf.c:155: error: (Each undeclared identifier is reported only once | |
102 dynload_syms_elf.c:155: error: for each function it appears in.) | |
103 dynload_syms_elf.c:155: error: syntax error before ')' token | |
104 dynload_syms_elf.c:160: error: `DT_NULL' undeclared (first use in this function) | |
105 dynload_syms_elf.c:163: error: `DT_STRTAB' undeclared (first use in this function) | |
106 dynload_syms_elf.c:164: error: `DT_SYMTAB' undeclared (first use in this function) | |
107 dynload_syms_elf.c:165: error: `DT_HASH' undeclared (first use in this function) | |
108 make: *** [dynload_syms.o] Error 1 | |
0 | 109 |
110 dyncallback: | |
111 ------------ | |
104
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
100
diff
changeset
|
112 - callback_plain's return value not correct anymore on NDS (maybe just broken testcode?), |
278 | 113 see above under 1.1 items |
104
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
100
diff
changeset
|
114 * check other platforms also, if asm stub initializes retval space, correctly |
21 | 115 - finish PPC32 callbacks (see bugs section, below, BSD not working) |
135 | 116 - test MIPS32 eabi big endian (current port works on psp, which is little endian) |
132
b0cca984c740
- manual update, started splitting platform overview in EP and EL for some platforms
cslag
parents:
129
diff
changeset
|
117 - implement MIPS64 N32 (gcc -mabi=n32); both, little and big-endian (looks like NetNBSD on and |
b0cca984c740
- manual update, started splitting platform overview in EP and EL for some platforms
cslag
parents:
129
diff
changeset
|
118 EdgeRouter lite uses this: https://blog.netbsd.org/tnf/entry/hands_on_experience_with_edgerouter) |
306
9f2aff560fa7
- todo update reflecting mips softfloat status more precisely (as only lacking for mips64/n32 callconv)
Tassilo Philipp
parents:
295
diff
changeset
|
119 - MIPS64 n32 softfloat support (-msoft-float) |
129 | 120 - implement MIPS64 EABI (gcc -mabi=eabi); both, little and big-endian |
141 | 121 - support for Minix/arm |
0 | 122 |
123 bindings: | |
124 --------- | |
125 - release bindings as standalone packages (already done for rbdc as a gem and rdyncall on cran) | |
126 * add note to documentation, where bindings are and that some bindings are svn-only ATM | |
127 - add rdoc documentation to ruby gem | |
128 - add pydoc for python | |
129 - add manpage for shdc | |
130 - expose callf-convenience functions to go | |
131 - add godoc for godc | |
132 - add javadoc to java | |
133 - add more bindings | |
134 - add callback support for erlang, go, java, lua, python and ruby (and shell? how?) | |
135 - add call-conv-mode-support for rbdc through signature | |
136 | |
137 manual: | |
138 ------- | |
201 | 139 - introduce doc overview tables and common vocab for calling convention specifics, following example of table on page 13 of https://www.linux-mips.org/pub/linux/mips/doc/ABI/MIPS-N32-ABI-Handbook.pdf; also as inspiration, e.g. user 'preserved' instead of 'permanent', etc. https://developer.apple.com/library/content/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARMv6FunctionCallingConventions.html#//apple_ref/doc/uid/TP40009021-SW4 |
140 - make stack layout diagrams better, e.g. add grow direction (example: https://developer.apple.com/library/content/documentation/Xcode/Conceptual/iPhoneOSABIReference/art/arm_stack.jpg on https://developer.apple.com/library/content/documentation/Xcode/Conceptual/iPhoneOSABIReference/Articles/ARMv6FunctionCallingConventions.html#//apple_ref/doc/uid/TP40009021-SW1) | |
100
dcb7157392f1
- manual: fixed html output of tables rendered as .png, using tex multirow
cslag
parents:
98
diff
changeset
|
141 - callconv diagrams: |
98 | 142 * good idea to review it all, anyways, if the calling conventions are actually |
100
dcb7157392f1
- manual: fixed html output of tables rendered as .png, using tex multirow
cslag
parents:
98
diff
changeset
|
143 represented correctly (and if they are in sync with the .pdf, we used to have |
dcb7157392f1
- manual: fixed html output of tables rendered as .png, using tex multirow
cslag
parents:
98
diff
changeset
|
144 problems with multirow.4ht) |
0 | 145 - provide more examples on how to use dyncall, dynload and dyncallback |
146 * e.g. enhance manual with a couple of examples (e.g. calling MessageBoxA on windows, etc.) | |
147 - manuals for bindings (as stated in bindings-section, above) | |
117 | 148 - under "dyncall support", in each calling convention appendix, list crucial details of e.g. big/little endian support, etc. |
149 - specify integer models in use, use common ILP32, LLP64, etc. terms | |
0 | 150 |
88 | 151 regressions: |
152 ------------ | |
0 | 153 - Haiku/gmake build doesn't build dynload due to the fact, that elf.h is not found |
154 on default installations (one has to install the system headers) | |
155 * add to doc | |
156 - Solaris/gmake build doesn't build dynload and tests anymore (maybe not even dyncallback) | |
157 - test arm32/ATPCS/THUMB (and then change Status in doc Appendix) | |
158 - look over code and fix TODO or @@@ marks | |
159 - add ppc-support to doc (both, 32 and 64, as well as little and big endian remarks) | |
160 | |
161 nice to have: | |
162 ------------- | |
163 - update: microsoft visual c++ build files - integrate all test suites in solution file | |
164 - consistency: on x64 platforms: make both ABIs available ('win64','sysv') for all x64 OS ports | |
165 - microsoft build enhancement: autodetect assembly via C preprocessor (like with .S gcc files) | |
166 - test/thunk: some platforms do not allow for allocation of executable code on heap and stack -- | |
167 currently this test will crash, maybe we should collect information which platforms allow and which not. | |
168 | |
169 bugs: | |
170 ----- | |
88 | 171 - setting callconv, specifically for platforms that have only one (default)) excepts on some |
6 | 172 platforms, eg. setting X64_sysv on amd64/Linux - keeping cdecl which is the same in |
88 | 173 this case, works (this should work now...) |
0 | 174 - vararg function calls don't work for ARM THUMB mode (Daniel's new interface for modesetting for varag |
175 args should be used); adapt test/ellipsis and/or retest | |
176 | |
177 missing implementations (descending priority): | |
178 ---------------------------------------------- | |
179 - riscv | |
180 - itanium | |
88 | 181 - superh/j-core |
0 | 182 - 68k, 88k, 6502, etc. |
88 | 183 - arc |
0 | 184 - alpha |
185 - cell | |
186 - blackfin | |
88 | 187 - seaforth |
21 | 188 - s/390 |
0 | 189 - z80 |
190 - hppa | |
191 - vax | |
192 - atmel avr | |
193 - propeller | |
194 - amd29k | |
195 |