[M3devel] hand.c to Modula-3?

Jay K jay.krell at cornell.edu
Mon Feb 8 15:03:30 CET 2010


Just a note that hand.c could be mostly/easily be written in Modula-3 instead of C.

The main problem is the names.

 

Might be a fun little project for someone.

 

We should also change the gcc backend to use memcmp instead of set_ne/set_eq.

 Or even the frontend. (There might be an extra efficiency to be had in that

  a) we don't need -1/0/+1, just a boolean b) we know it is a whole

  number of ulongs). Probably set_ne/set_eq are rare though.

m3back compares to an empty set often, but it is small and the front

end implements small sets as a single integer.

 

 - Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100208/fab996d0/attachment-0001.html>


More information about the M3devel mailing list