1
0
mirror of https://github.com/marqs85/ossc.git synced 2024-06-08 18:29:30 +00:00
ossc/software/sys_controller
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
..
it6613 fix audio infoframe content to comply with HDMI spec 2019-08-24 10:54:13 +03:00
mem_init Userdata export (FAT16): Optimize code size. 2020-11-24 23:50:05 +02:00
memory update epcq_controller_mod to epcq_controller2 2020-11-10 19:46:07 +02:00
ossc Userdata export (FAT16): Optimize code size. 2020-11-24 23:50:05 +02:00
pcm1862 pcm1862: add pre-ADC gain setting 2018-03-02 23:11:52 +02:00
spi_charlcd Update lcd.c 2019-11-14 04:03:06 +08:00
ths7353 enable 35MHz video LPF for 720p & 1080i in auto mode 2019-03-16 01:20:16 +02:00
tvp7002 Mode preset selection improvements 2020-08-13 21:32:26 +03:00
ulibSD ulibSD/sd_io.c: Fix line endings to be consistently CRLF. 2020-11-05 19:11:04 +02:00
crt0.boot_E.S switch to RV32E 2018-10-30 01:31:40 +02:00
crt0.boot.S integrate zero-riscy 2018-10-06 13:19:12 +03:00
link.common.ld fix dataram size setting 2019-10-12 22:59:04 +03:00
link.riscv.ld integrate zero-riscy 2018-10-06 13:19:12 +03:00
Makefile Userdata export: export settings on a FAT16 filesystem. 2020-11-24 23:50:05 +02:00
pulpino.h integrate zero-riscy 2018-10-06 13:19:12 +03:00