#22: Re-evaluate max. number of get_args values
-------------------+--------------------------------------------------------
 Reporter:  kjs    |        Type:  todo 
   Status:  new    |    Priority:  minor
Milestone:  1.0    |   Component:  core 
  Version:  trunk  |    Severity:  low  
 Keywords:  PCC    |        Lang:       
    Patch:         |    Platform:  all  
-------------------+--------------------------------------------------------

Comment(by NotFound):

 I was mistakenly answered this by email some weeks ago.

 >  In compilers/imcc/pcc.c, in the function pcc_get_args, there is a
 #define
 >  for the maximum number of get_args values:
 >
 >     #define PCC_GET_ARGS_LIMIT 15

 This is not the max number of values allowed, is just the number of
 values that can be processed without allocating and deallocating
 memory. Sorry if the name is misleading.

 >  The number of 15 seems indeed to be arbitrary, and is certainly a
 limitation.

 Not a limitation, if the number is greater memory is allocated and
 deallocated, instead of using local variables.

 >  This must be decided and implemented.

 No need to implement nothing. The micro-optimization can be reverted
 to always allocate, if desired. Or the macro can be renamed and the
 comment made more clear, but that can be better done by someone more
 fluent in english than me.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/22#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to