issue-#43 eliminating the code procedure size limit of 256

Merged to the master branch
Post Reply
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

issue-#43 eliminating the code procedure size limit of 256

Post by Josef Templ »

This issue is about eliminating the code procedure size limit of 256 bytes.
See http://redmine.blackboxframework.org/issues/43.

Normally, this limit would not be a problem to anybody because code procedures
are system dependent and used rarely. However, there has been somebody who went into this limit.
In general, it is better not to have a limit than to have one. So I would support eliminating this limit.
A proposal for the required changes exists in CPC 1.7 rc5. The changes are simple and natural.
Instead of a fixed size array, a dynamically allocated array is used that is extended on overflow.

For the changes see http://redmine.blackboxframework.org/pr ... baa715cef4.

The changes are as proposed in CPC 1.7 rc5 with one addition in DevCPP/DevAnalyzer.GetCode:
err(64) changed to err(63). 64 was an inappropriate error number.

@HELMUT, luowy:
Do you know to which issue the following change in DevCPP.IncompleteType belongs?

Code: Select all


- 20130710, luowy, IncompleteType BUGFIX

IF typ = DevCPT.sysptrtyp THEN RETURN FALSE END; (*<< luowy BUGFIX 2013/07/10 *)
- Josef
luowy
Posts: 234
Joined: Mon Oct 20, 2014 12:52 pm

Re: issue-#43 eliminating the code procedure size limit of 2

Post by luowy »

Josef Templ wrote:@HELMUT, luowy:
Do you know to which issue the following change in DevCPP.IncompleteType belongs?

Code: Select all

- 20130710, luowy, IncompleteType BUGFIX

IF typ = DevCPT.sysptrtyp THEN RETURN FALSE END; (*<< luowy BUGFIX 2013/07/10 *)

check this link,please
blackbox maillist 2013.07 http://blackboxframework.org/archive/2013/3053.html

luowy
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: issue-#43 eliminating the code procedure size limit of 2

Post by Ivan Denisov »

Author is Oleg N. Cher
http://blackboxframework.org/archive/2012/3377.html
https://github.com/Oleg-N-Cher/XDev/com ... 2a8a16feca
http://zinnamturm.eu/pac/B2015.0505.txt
Search: "20. Remove compiler restriction of code procedure size (Open Points #45):"
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: issue-#43 eliminating the code procedure size limit of 2

Post by Josef Templ »

The TRAP fixing is from luowy,
the code procedure proposal is from Oleg, right?

- Josef
Post Reply