View Issue Details
Your program crashes: you forget to set the arrays size,
Also: which optimization settings are you using?
This is only for demonstrating the assembly code. It is not meant for execution. Thus I stripped all unnecessary code, including initializations.
I tried O3, O4 and all the other optimizations which are unsafe/Ungrouped. Even WHO. It does not change a thing. -al is used to generate the assembly listing.
||It's indeed strange it doesn't reuse INDEX|
Yes, Marco, that is strange.
But Julian, plz write working code to demonstrate. Reason is that the compiler can (and will!) confuse code paths when presented with nonsense.
This is not the case here - apart from the fact it should not compile at all with proper compiler settings! - as far as I can tell, I have seen such things happen.
Rangechecks on, plz.
||Thaddy, I made sure that the assembly code did not change when removing code. Remember that this is a stripped down example from our original problem. My goal was to make it easier to find the code in the assembly listing. If the code would have changed I would not have done that.|
|2019-11-07 16:52||Julian Puhl||New Issue|
|2019-11-07 17:33||Thaddy de Koning||Note Added: 0119142|
|2019-11-07 17:42||Julian Puhl||Note Added: 0119143|
|2019-11-07 17:44||Julian Puhl||Note Edited: 0119143||View Revisions|
|2019-11-07 22:52||Marco van de Voort||Note Added: 0119150|
|2019-11-08 09:19||Thaddy de Koning||Note Added: 0119154|
|2019-11-08 11:25||Julian Puhl||Note Added: 0119155|
|2019-11-16 18:41||Florian||Assigned To||=> Florian|
|2019-11-16 18:41||Florian||Status||new => resolved|
|2019-11-16 18:41||Florian||Resolution||open => fixed|
|2019-11-16 18:41||Florian||Fixed in Version||=> 3.3.1|
|2019-11-16 18:41||Florian||Fixed in Revision||=> 4350|
|2019-11-16 18:41||Florian||FPCTarget||=> -|