Vote UpVote

Delphi/Fortran memory allocation difference: row/column major order makes a big difference. StackOverflow answer.

The Wiert Corner – Last week I posted an in depth answer on StackOverflow.com about the memory allocation difference in Delphi and Fortran, or more accurately in two different kinds of languages. You have: column major order (not only used in Fortran and other science centric languages, but also in the shading languages GLSL and HLSL that can be used in FireMonkey) row major order (used in most other languages, for instance Delphi, C, etc) A very important aspect is the order of for optimized loops. For column major order, the optimum is inside out (as the inner arrays/records are in consecutive memory ...
Favorite? Off-Topic? jpluimers @ 2012-08-14 07:00


Visits: 526
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

JC Chu
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)