Page 2 of 2
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 4:12 pm
by mk-soft
Doesn't work under c-backend anyway. It is written in ASM.
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 4:33 pm
by Lunasole
tester wrote: Mon Mar 27, 2023 3:55 pm
Not working with C-backend PB601 - Error: 'EndModule' is missing.
Maybe you missed that EndModule.
Still works
Code: Select all
Global Dim T1.l(300)
Define T
For T = 0 To 300
T1(T) = Random(10000, 1)
Next
Define lMin, LMax
MinMax::MinMaxL(@T1(0), 301, @lMin, @LMax)
Debug lMin
Debug LMax
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 4:36 pm
by Lunasole
mk-soft wrote: Mon Mar 27, 2023 4:12 pm
Doesn't work under c-backend anyway. It is written in ASM.
Why should not? I thought C-backend also supports ASM parts (and it should)
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 5:26 pm
by mk-soft
Lunasole wrote: Mon Mar 27, 2023 4:36 pm
mk-soft wrote: Mon Mar 27, 2023 4:12 pm
Doesn't work under c-backend anyway. It is written in ASM.
Why should not? I thought C-backend also supports ASM parts (and it should)
Must be rewritten from ASM -> C-Backend ASM
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 5:33 pm
by tester
mk-soft wrote: Mon Mar 27, 2023 5:26 pm
Lunasole wrote: Mon Mar 27, 2023 4:36 pm
mk-soft wrote: Mon Mar 27, 2023 4:12 pm
Doesn't work under c-backend anyway. It is written in ASM.
Why should not? I thought C-backend also supports ASM parts (and it should)
Must be rewritten from ASM -> C-Backend ASM
We are waiting for someone who can help with this.

Re: Min and max values of an array
Posted: Mon Mar 27, 2023 5:53 pm
by mk-soft
But I don't think much of Intel-ASM inside C-backend, because it doesn't work with ARM processors.
Re: Min and max values of an array
Posted: Mon Mar 27, 2023 6:24 pm
by Lunasole
But I don't think much of Intel-ASM inside C-backend, because it doesn't work with ARM processors.
We are waiting for someone who can help with this.

So only ARM-asm is the question, while x86 still works as before.
Hah, yes that should be hard enough to find someone good in that.
There are no old farts who knew ARM ASM long ago, and a new farts just won't learn it because they writing code in some python or whatever

Re: Min and max values of an array
Posted: Wed Mar 29, 2023 10:46 am
by wilbert
There are some vector extensions for gcc that maybe could be used
https://gcc.gnu.org/onlinedocs/gcc/Vect ... sions.html
but I don't know if those are also available on arm.
Re: Min and max values of an array
Posted: Wed Mar 29, 2023 11:16 pm
by Lunasole
I won't say about this (I didn't dig at such levels for a long enough at all).
But glad to see you still here and doing something

Re: Min and max values of an array
Posted: Thu Mar 30, 2023 6:06 pm
by wilbert
Lunasole wrote: Wed Mar 29, 2023 11:16 pm
I won't say about this (I didn't dig at such levels for a long enough at all).
But glad to see you still here and doing something
Thanks
I do still visit the forum but haven't posted much lately.
A lot of my posts were related to asm or macOS.
Asm has become less relevant with the C backend and my mac doesn't receive updates anymore since a few years (but is still working fine for my own needs).