1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-06-08 03:29:29 +00:00
ossc/software/sys_controller/ossc
Ari Sundholm 760be1738e Userdata export (FAT16): Optimize code size.
Reorganize the and optimize the code to avoid redundant code and thus
reduce code size, while making sure to zero-initialize the used areas
on the SD card. These are the "clean" part of this change.

The "dirty" part:
Optimize the FAT16 export code further by introducing small deviations
from the FAT16 specification. These deviations should not be harmful
at all, unless the SD card is used for something requiring the jump
instruction and/or boot code in the boot sector to be valid. This is
typically only required when booting off the filesystem.

After these changes, a considerable reduction in code size can be
observed for sys_controller.elf and sys_onchip_memory2_0.bin:

sys_controller.elf:
   text	   data	    bss	    dec	    hex	filename
  32392	   2936	   2652	  37980	   945c	sys_controller.elf

sys_onchip_memory2_0.bin:
size: 35328 bytes

This reduces the cost of the FAT16 export feature to 446 bytes.
2020-11-24 23:50:05 +02:00
..
av_controller.c advanced OSD implementation 2020-10-05 23:05:43 +03:00
av_controller.h advanced OSD implementation 2020-10-05 23:05:43 +03:00
avconfig.c Analog frontend updates 2020-02-09 20:21:53 +02:00
avconfig.h use dash to represent total line count, e.g. 262-p 2020-06-17 02:22:24 +03:00
controls.c display profile name on infoscreen 2020-11-10 20:09:18 +02:00
controls.h minor optimizations 2018-03-25 00:32:06 +02:00
fat16_export.c Userdata export (FAT16): Optimize code size. 2020-11-24 23:50:05 +02:00
fat16_export.h Userdata export (FAT16): Optimize code size. 2020-11-24 23:50:05 +02:00
firmware.c advanced OSD implementation 2020-10-05 23:05:43 +03:00
firmware.h update epcq_controller_mod to epcq_controller2 2020-11-10 19:46:07 +02:00
menu.c Implement userdata export. 2020-11-06 15:06:29 +02:00
menu.h advanced OSD implementation 2020-10-05 23:05:43 +03:00
sysconfig.h fix debug mode printf 2018-10-21 00:04:46 +03:00
userdata.c Userdata export (FAT16): Optimize code size. 2020-11-24 23:50:05 +02:00
userdata.h Implement userdata export. 2020-11-06 15:06:29 +02:00
utils.c update epcq_controller_mod to epcq_controller2 2020-11-10 19:46:07 +02:00
utils.h update epcq_controller_mod to epcq_controller2 2020-11-10 19:46:07 +02:00