assembly/profiling question

Stephen Weeks MLton@sourcelight.com
Thu, 23 Aug 2001 19:33:18 -0700


Matthew and I talked a bit about profiling, and it really would help if
space-mlprof uses the same infrastructure as time-mlprof.  So, he's going to
stick with a variant of the scheme he mentioned, 

> addl X,gcState.frontier
> to
> addl X,gcState.frontier
> addl X,(appropriate bin)

except that since it's not possible to get the assembler to stick in the
constant we want, there will be several instructions inserted that actually
compute the address at runtime.  This won't affect allocation behaviour of the
program at all, so we should be fine.