help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a command that shows the C-code the interpreter creates?


From: Nicholas Jankowski
Subject: Re: Is there a command that shows the C-code the interpreter creates?
Date: Wed, 17 Apr 2019 16:36:05 -0400

Let's say the m-file has two lines:

a=1;
a="s";

this requires the variable type to be dynamic. Now change the variables to:

a_0=1;
a_1="s";

Now these variables types are static. S

so, are you suggesting that in order to compile, users would be restricted in the variable naming that they use, or that this variable changing would somehow happen "behind the scenes" by the interpreter and be transparent to the user?  The user could still specify a = 1;  a = "s", and would never see the a_0, a_1 formulation?  Because the alternative is that you would require a complete break in m-code compatibility with Matlab and backward compatibility with previous versions of Octave.  It would also be quite a cumbersome burden to place on code development to have one style of variable naming for general use, and another much stricter variable naming scheme for compiler-compatible m-code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]