Thank you sebraa for taking the time to answer.
Some observations:
1) The build script generates the code16.s file at the end using the e-objdump program see file
https://github.com/joseluisquiroga/para ... 6/build.shfrom the just compiled elf file. It has to be a match (unless the e-objdump is broken). This file is the build script. It is not missing.
2) As you can see the .bss section (just look at the address '1c4' for val2) is in core memory. See file (line 99)
https://github.com/joseluisquiroga/para ... 6/code16.sThat means that variable 'val2' is local core memory.
3) Since the shared mem variable (off core variable) called 'shdmem' is assigned only once at the end of the program with the value of an in core variable (val2) it can only have either the value zero which is the initialization value in the host program in line 63. See file:
https://github.com/joseluisquiroga/para ... /prog_16.cOr the value that val2 had at the moment of the assignation in line 40 in the epiphany program. See file:
https://github.com/joseluisquiroga/para ... _prog_16.cThat is: Either there was enough time for it to be assigned or not, before it is read in the host program.
4) aux is a variable in the stack (,[fp,+0x3]) which is the one assigned several times in the eprog. The stack register sp is initialized in the start assembler program to local memory. See file (lines 13 and 14):
https://github.com/joseluisquiroga/para ... /e_start.sSo it is all local in core memory (not off core, not off chip) the one that is been assigned for line 20 to 39 of the eprog. Only up to line 40 off chip (shdmem variable) memory is assigned and it must either have the value of val2 or zero. Only if I read zero in the host (which never happens in my running tries) I did not give enough time, otherwise it must have the value that val2 was assigned in line 33.
5) The program is just a modification of the helloworld example so you can build it and run it using the script files:
https://github.com/joseluisquiroga/para ... 6/build.shand
https://github.com/joseluisquiroga/para ... -16/run.sh===================
I would like some feedback:
Do you get the same result 0xddd?
Thanks again.
JLQ.