X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=TODO;h=bdbb0ecc747f48d271d8bb00866011823f727866;hb=eeb4276deb5c3ba6621b8121d460bc50857c8d53;hp=8713e818553ce839993c987e425791fc3a4eda31;hpb=4441c1ffdcc30a3c51a6d407a2f178a1b3fba28a;p=openocd.git diff --git a/TODO b/TODO index 8713e81855..bdbb0ecc74 100644 --- a/TODO +++ b/TODO @@ -306,6 +306,23 @@ These ideas were first introduced here: @par The following architectural tasks need to be accomplished and should be fairly easy to complete: + +- use dynamic allocations for working memory. Scan & fix code +for excessive stack allocations. take linux/scripts/checkstack.pl and +see what the worst offenders are. Dynamic stack allocations are found +at the bottom of the list below. Example, on amd64: + + $ objdump -d | checkstack.pl | head -10 + 0x004311e3 image_open [openocd]: 13464 + 0x00431301 image_open [openocd]: 13464 + 0x004237a4 target_array2mem [openocd]: 4376 + 0x0042382b target_array2mem [openocd]: 4376 + 0x00423e74 target_mem2array [openocd]: 4360 + 0x00423ef9 target_mem2array [openocd]: 4360 + 0x00404aed handle_svf_command [openocd]: 2248 + 0x00404b7e handle_svf_command [openocd]: 2248 + 0x00413581 handle_flash_fill_command [openocd]: 2200 + 0x004135fa handle_flash_fill_command [openocd]: 2200 - clean-up code to match style guides - factor code to eliminate duplicated functionality - rewrite code that uses casts to access 16-bit and larger types