Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: BluePinnacle on September 07, 2009, 06:29:07 PM

Title: limited lines query
Post by: BluePinnacle on September 07, 2009, 06:29:07 PM
Hi. Probably a short answer to this one. If a licensed copy of mach is limited to 10,000,000 lines, does this mean ten million lines of code as written or ten million lines of code as executed? If I set a subroutine of 10 lines to execute 1,000,000 times, would this crash it, or would it just see ten lines over and over again?

not that this is ever likely to bother me as I haven't written anything bigger than a Kilobyte :)
Title: Re: limited lines query
Post by: HimyKabibble on September 07, 2009, 07:05:52 PM
I would assume 10 lines executed 10,000,000 times would be just fine.  The limitation is due to memory constraints, due to internal data structures, and perhaps limitations in the G-code parser.  A 10-line program would have a tiny parse tree representation.

Regards,
Ray L.