Создать ответ 
 
Рейтинг темы:
  • Голосов: 0 - Средняя оценка: 0
  • 1
  • 2
  • 3
  • 4
  • 5
cso support
Автор Сообщение
sundance2 Не на форуме
Новичок
*

Сообщений: 19
Зарегистрирован: 24.11.2020
Рейтинг: 0
Сказал спасибо: 13
Поблагодарили 2 раз(а) в 2 сообщ.
Сообщение: #9
RE: cso support
Thanks also for the technical elements describing the behavior of that feature.

Trying to get into some details :

> You are absolutely right, just did not take into account one more nuance. The LZO code itself takes up memory Smile ~2 Kb and it's essential.

2 KB for an LZO decoder feels overkill.
This kind of trivial compression format should be decodable using a ~200 bytes routine.
Granted, hand assembly is likely out of scope,
but given the baseline, I would have hoped that a good compiler would make it < 1 KB.

I expect the compiler to use DCE (dead code elimination),
but even in these cases, there might be some code which is integrated into the package and not especially useful.

Well, I guess it's probably a hard topic, out of your scope.

> the current implementation of reading lzo-compressed images in the loader requires additional *dynamic* memory, unfortunately. The implementation that does not use additional memory is disabled there were some problems with it.

I presume the "implementation that does not use additional memory" would be employing in-place decompression ?
This is a feature for many of these low-complexity formats, allowing decompressed data to overwrite the compressed one previously stored in the same buffer.
In general, there is a need for some margin for it to work properly (aka, the end of the compressed block is not positioned at the end of the decompressed block, but rather a few bytes beyond that).
How much is the margin depend on each format. If it's not known or not documented, it can be generously evaluated. Typically one cache line (32-bytes on SH4) should be enough.

> Of course you can! Just uncomment ENABLE_CISO=1 in Makefile.cfg of isoldr firmware.

I believe I did that when investigating the topic earlier this year.
But it did not solve the issue, as apparently the crash happens before reaching the loader.
(Последний раз сообщение было отредактировано 25.11.2020 в 13:06, отредактировал пользователь sundance2.)
25.11.2020 13:05
Найти все сообщения Цитировать это сообщение
Создать ответ 


Сообщения в этой теме
cso support - sundance - 18.03.2020, 10:47
RE: cso support - kof888 - 18.03.2020, 13:42
RE: cso support - sundance - 20.03.2020, 03:31
RE: cso support - sundance - 29.03.2020, 03:54
RE: cso support - SWAT - 30.03.2020, 12:41
RE: cso support - sundance2 - 24.11.2020, 20:58
RE: cso support - SWAT - 25.11.2020, 07:01
RE: cso support - sundance2 - 25.11.2020, 09:24
RE: cso support - sundance2 - 25.11.2020 13:05
RE: cso support - SWAT - 27.11.2020, 06:54
RE: cso support - sundance2 - 27.11.2020, 23:11
RE: cso support - SWAT - 29.11.2020, 09:42

Переход:


Пользователи просматривают эту тему: 2 Гость(ей)