Forum > Other
assembler
Weiss:
gents, I totally took Curt's comment as directed to me, no confusion here. I also have no problem when my thread is stolen, unless we begin discussing politics or religion. Babes and motorcycles ok.
Seenkao:
--- Quote from: TRon on July 17, 2024, 05:03:12 am ---The compiler is pretty good at optimizing generated code and while it might have been fruitful to count cycles for old processors it is pretty much undoable to optimize for modern processors to such an extent that is becomes noticeable. Ofc for your particular use-case and setup you might be able to optimize the crap out of things but that doesn't guarantee for the same code to run as smooth on another setup or other use-case.
--- End quote ---
Компилятор FPC, к сожаленью, не очень хорош в оптимизации кода. Особенно это видно для ARM32/ARM64 архитектруры. Я скидывал проблемы с кодом в багтрекер, его ни кто не рассматривал. Не хотите это исправлять, значит не надо. (да, я знаю что это не просто всё исправить, и вполне возможно показанные мной проблемы взяли отметили для исправления в будущем).
Извиняюсь за оффтоп.
------------------------------------------------------
Google translate:
--- Quote from: TRon on July 17, 2024, 05:03:12 am ---The compiler is pretty good at optimizing generated code and while it might have been fruitful to count cycles for old processors it is pretty much undoable to optimize for modern processors to such an extent that is becomes noticeable. Ofc for your particular use-case and setup you might be able to optimize the crap out of things but that doesn't guarantee for the same code to run as smooth on another setup or other use-case.
--- End quote ---
The FPC compiler, unfortunately, is not very good at optimizing code. This is especially noticeable for the ARM32/ARM64 architecture. I posted problems with the code in the bug tracker, but no one looked at it. If you don't want to fix it, then you don't have to. (yes, I know that it’s not easy to fix everything, and it’s quite possible that the problems I showed were taken and noted for correction in the future).
Sorry for the offtopic.
TRon:
--- Quote from: Seenkao on July 18, 2024, 08:22:19 am ---The FPC compiler, unfortunately, is not very good at optimizing code. This is especially noticeable for the ARM32/ARM64 architecture. I posted problems with the code in the bug tracker, but no one looked at it. If you don't want to fix it, then you don't have to. (yes, I know that it’s not easy to fix everything, and it’s quite possible that the problems I showed were taken and noted for correction in the future).
--- End quote ---
I am aware that FPC does not always produce the most efficient code, especially not for newly added cpu's/platforms. It is a lot of work and requires a special skill set e.g. not many people are proficient with optimizing generated assembler (for a particular CPU). It is getting better of the years though.
I don't consider it to be off-topic because one of the arguments used to to start writing (your own) assembler is because the compiler does such a shitty job (not my words).
Navigation
[0] Message Index
[*] Previous page