Challenge: write a really really small front() for UTF8

Michel Fortin michel.fortin at michelf.ca
Mon Mar 24 06:43:30 PDT 2014


On 2014-03-24 13:39:45 +0000, Michel Fortin <michel.fortin at michelf.ca> said:

> That said, my test "main" function isn't very representative of the 
> general case because the length is statically known by the optimizer. 
> Let's see what it does when the length is not statically known:

Oops, wrong link, was from an intermediary test.
This one will give you the results in the table:
http://goo.gl/lwU4hv

> implementation   line count of main in assembly
> andralex         384 -  9 labels = 375 instructions
> MFortin1         173 - 19 labels = 154 instructions
> MFortin2         182 - 18 labels = 164 instructions
> safety0ff         -- not inlined --
> dnspies           -- not inlined --
> CWilliams        229 - 23 labels = 206 instructions
> MFortin1Check    211 - 24 labels = 187 instructions
> MFortin2Check    218 - 21 labels = 197 instructions


-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca



More information about the Digitalmars-d mailing list