<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all:<br>well, all that said, is it possible, but how many checks would be needed to all those errors, I perhaps think the best tool at hand is but to run undependently of the platform ESC, at least to catch the most common RT errors for now, but gcc as a backend is enough optimizable and also enough conservative to catch at compile time warnings you see as possible M3CG errors, in Modula-3 safe code there are not explicity needed in ESC terms but in UNSAFE ones, so the most RTError you want to catch as m3gdb exceptions would be advisable in foreseeable future, perhaps making some of them implementable at ESC level, but to check for  those that are that in the RTCollector, RTException and the RTThread specially perhaps simpler ones in ESC terms but important, and in the M3CG memory handling, exception, and threads too, obviously in the RTType, even if those
 are not safely checked RTError should have some correspondent there and that is it must be caught in the M3CG before it can also generate bad codes, if so, also possible improved UNSAFE RTTypeSRC information to accomplish that perhaps a better but not limited to type checking and exceptions handled of both safe and UNSAFE code.<br>Thinking in what's on the market there are recent reports in Logic Analyzer of embedded software-hardware verification environments for circuit analysis, such kind of automation tests are deployable even at the try and so we may get that, although this Embedded software Arena, but even at that level, cost effective knowing of the logic synthesis theories errors they want to be rid of, that is, is more important to shape some circuit level checks before product is deployed since may things depended on that too.<br>We could seemingly adopt that strategic objective too, detect most of the common errors in those areas, also a nice
 RTTypeSRC interface for unsafe type code patterns.<br>Perhaps some of this work is already done implemented in Modula-3 VM backend Quest abstract machine, since  it has nice constructs and basically same stack architecture and machine but with additional ability to support for separating sound and unsound modules. <br>I think in this way the margin of RT errors will be diminished by at least by some volume bounded by the amount of each type inference in the checker, specially some of the ones in RTTypeSRC information portion plus desired good to watch at least some code modularity level sound handled in such code, so some of them that must be catched and, something it isn't right now for M3CG will not, but just because of correspondent MODULEs so it can be translated sound and caught in better CG compiler time in other representation and then generate code to its RT binary structures perhaps some may want for that too. Also that could be generous
 in terms of debugging both Quest level and m3gdb source level.<br>Thanks in advance <br><br><br>--- El <b>vie, 1/4/11, Jay K <i><jay.krell@cornell.edu></i></b> escribió:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Jay K <jay.krell@cornell.edu><br>Asunto: Re: [M3devel] m3gdb broken<br>Para: "Mika Nystrom" <mika@async.caltech.edu><br>CC: "m3devel" <m3devel@elegosoft.com><br>Fecha: viernes, 1 de abril, 2011 22:24<br><br><div id="yiv1628387283">

<style><!--
#yiv1628387283 .yiv1628387283hmmessage P
{
margin:0px;padding:0px;}
#yiv1628387283 .yiv1628387283hmmessage
{
font-size:10pt;font-family:Tahoma;}
--></style>
The question is, can they be well represented within gcc's usual trees/types/debug-info<br>for good experience in stock gdb.<br>Enums for example -- yes, I had them working.<br><br>Subranges -- what should the experience be?<br>For example, when I use debuggers, I use expression evaluation involving assignment<br>to set values. Should the debugger catch attempts to assign out of range values?<br>Or are subranges just integers with a certain number of bits and that is it and that suffices?<br>I understand the runtime does more precise checks than just bit-width.<br><br>sets -- I can see this being....are they just an integer or an array of integers?<br>Or higher level? I can see this being poor...unless unless.. gcc maybe already<br>had good support for Pascal? Maybe Ada has a similar feature?<br>Ada does actually look like Modula-3 to a large extent!<br><br>Consider also that on Darwin, none of this stuff works at all.<br>So even sets as integers or
 arrays of integers would be much better than current.<br><br>One has to read some of the gcc documentation, browse tree.h, tree.def, etc.,<br>learn what is well representable.<br><br>One shouldn't just completely ignore the significant infrastructure and just<br>tunnel all the information through in a custom way that stock gdb is completely ignorant of.<br><br><br> - Jay<br><br>> To: jay.krell@cornell.edu<br>> CC: m3devel@elegosoft.com<br>> Subject: Re: [M3devel] m3gdb broken <br>> Date: Fri, 1 Apr 2011 19:42:33 -0700<br>> From: mika@async.caltech.edu<br>> <br>> Jay K writes:<br>> ...<br>> >But that "custom information" is largely just basic type information=2C tha=<br>> >t any decent<br>> >C compiler/debug-info/debugger can handle.<br>> >Someone should investigate if we really pass stuff through that can't be we=<br>> >ll represented<br>> >in gcc's type information.<br>> >For
 example: sub ranges? sets? enums? packed?<br>> <br>> Subranges, sets, and enums certainly used to be shown in a "friendly" way<br>> by m3gdb.<br>> <br>>     Mika<br>                                       
</div></blockquote></td></tr></table>