1. Optimized Calls To Empty Routines.

Hi,

Under any circumstances does Euphoria discard/not make calls to empty
routines?  My simple tests show that calls to empty routines are made.

The reason I'm interested in this type of optimization, is because I'm
toying with the idea of making a simple profiler for Euphoria for Windows
using a DLL.

I was thinking when the users doesn't want profiling, they would use a
different include file that would replace the functioning routines with
empty ones, which would be optimized away by the interpreter.

Thanks in advance,
David Guy

new topic     » topic index » view message » categorize

2. Re: Optimized Calls To Empty Routines.

David Guy writes:
> Under any circumstances does Euphoria discard/not make
> calls to empty routines?  My simple tests show that calls to
> empty routines are made.

Euphoria (currently) will always call a routine, even if it's empty.

(When type_check is turned off, Euphoria will skip calls to
user-defined types.)

Regards,
     Rob Craig
     Rapid Deployment Software
     http://members.aol.com/FilesEu/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu