Why should I do such an assignment?

pub testmumpf (mumpf) mumpf := mumpf
this procedure can be compiled. But what actually happens?
A second question: how to create a newline when displaying code ? Thanks, solved
[code]
pub testmumpf (mumpf)
mumpf := mumpf
[/CODE]
Comments
>
Triple backtick block, like this (escaped for demonstration)
```
Code here
```
Hi,
as I do not work with SPIN2, I cannot help you much with this question other than that a look into the .lst file is sometimes very interesting.
I would assume, that nothing happens and if the optimizer is good, it will throw out all of it.
Now off for a look at Hochrechnungen....
Best regards Christof
I'm using Propeller tool, just to KISS. Expect to switch to another IDE only after having a first simple application running, I move from P1 to P2.
What created the .list file ?
Anyway: I started to write a statement like ab= a, using copy and paste resulting in a = a . Then I left the scene without adding the b, later returned, compiled and wondered, why no error was thrown, as it makes no sense to change the value of an input.
Or is this an intended behavior for quick stimulation of a function to test?
With the usual Spin interpreter:
There is no error because it is legal syntax. The fact it is achieving nothing functional is not the compiler's concern.
Christof's reference to a .lst file was probably from the Flexspin compiler. It provides a textural listing of what goes into the binary executable. Here's an example compile-to-native snippet:
And that was generated from:
evanh, thanks for showing this. I ran into a problem moving SW to the P2, surprise: I had no problems using @@ in Spin, but something went wrong when I did the same in ASM. So I had to refresh (or gain) understanding how pointer addresses actually work. In the end I realized, I missed to instantiate a variable, and now it looks, I'm fine in this respect.
Oh, yes, I meant this. Sorry for being unclear.