<br /><br />20:12, 3 May 2018 г., Adrian Thurston <thurston@colm.net>:<br /><blockquote><p>Hi Konstantin,<br /><br />code_t is the type used to encode virtual machine instructions. Just <br />need 1 byte for this now.<br /><br />half_t is used mostly for virtual machine instruction arguments. It <br />started out as 2 bytes, but has grown. It might have been made larger <br />than needed at the moment -- haven't looked at that in long time.<br /><br />word_t is the primary type for virtual machine values pushed to the <br />stack and operated on by the VM. The values are either pointers to <br />things or integers. The VM assumes the same size here, so whatever type <br />is used it needs to be the same size as a pointer or there will be some <br />trouble.<br /><br />Admittedly, portability needs to be improved.<br /></p></blockquote>Hi Adrian,<div>thank you for the clarification. I think this is enough for experiments.</div><div><blockquote><p>On <span>2018-04-30 11</span>:34, Konstantin Podsvirov wrote:<br /></p><blockquote> 30.04.2018, 18:06, "Adrian Thurston" <<a href="mailto:thurston@colm.net">thurston@colm.net</a>>:<br /><blockquote> Hi, yes would like to have this fixed at some point. Sorry no ETA at <br /> the moment.<br /></blockquote><br /> But can you briefly describe what does each type code_t, word_t,<br /> half_t and what are the requirements in size and made to them.<br /><br /><blockquote> On <span>2018-04-29 12</span>:53, Konstantin Podsvirov wrote:<br /><blockquote> Hello colm developers... :-)<br /><br /> Currently the word_t is hardcoded in src/tree.h file as unsigned long <br /> type, bun used to store pointers too.<br /><br /> On some platform (for example mingw64) size of the long (4 byte) less <br /> then size of the void* (8 byte).<br /><br /> Previously i add check for this problem in CMake project file, but <br /> not provide any solution.<br /><br /> What you think about this?<br /><br /> --<br /> Regards,<br /> Konstantin Podsvirov<br /><br /> _______________________________________________ colm-users mailing <br /> list <a href="mailto:colm-users@colm.net">colm-users@colm.net</a> <br /> <a href="http://www.colm.net/cgi-bin/mailman/listinfo/colm-users">http://www.colm.net/cgi-bin/mailman/listinfo/colm-users</a><br /></blockquote> ,<br /><br /> _______________________________________________<br /> colm-users mailing list<br /> <a href="mailto:colm-users@colm.net">colm-users@colm.net</a><br /> <a href="http://www.colm.net/cgi-bin/mailman/listinfo/colm-users">http://www.colm.net/cgi-bin/mailman/listinfo/colm-users</a><br /></blockquote><br /> --<br /> Regards,<br /> Konstantin Podsvirov<br /><br /> _______________________________________________<br /> colm-users mailing list<br /> <a href="mailto:colm-users@colm.net">colm-users@colm.net</a><br /> <a href="http://www.colm.net/cgi-bin/mailman/listinfo/colm-users">http://www.colm.net/cgi-bin/mailman/listinfo/colm-users</a><br /></blockquote><p><br />_______________________________________________<br />colm-users mailing list<br /><a href="mailto:colm-users@colm.net">colm-users@colm.net</a><br /><a href="http://www.colm.net/cgi-bin/mailman/listinfo/colm-users">http://www.colm.net/cgi-bin/mailman/listinfo/colm-users</a><br /></p></blockquote><br /><br />Отправлено из мобильной Яндекс.Почты: http://m.ya.ru/ymail</div>