[Libre-soc-bugs] [Bug 676] FORTRAN MAXLOC SVP64 example

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Nov 1 03:16:41 GMT 2023


https://bugs.libre-soc.org/show_bug.cgi?id=676

--- Comment #12 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #11)
> like the knuth examples.

honestly those need Makefiles (and comments saying which one we use), since
they have been mis-interpreted before when people were trying to figure out
which #define is used (since there's like 10 options). We're using the last
one, but they read an earlier one and started basing instruction proposals off
it...
https://bugs.libre-soc.org/show_bug.cgi?id=1192#c1

Also because I had to spend several minutes trying to figure out how to build
them with the right #defines since I forgot. 

> standalone command. no Makefile.

I think it should have a Makefile even if it's very simple, since that tells
others how to build it and they don't have to type or copy/paste in the full
command every time. the following should be sufficient (make sure indentation
is tabs, not spaces, otherwise it won't work):

.PHONY: all clean

all: maxloc

maxloc: maxloc.c
    gcc -Os -mno-vsx -mno-altivec maxloc.c -o maxloc

clean:
    rm -rf maxloc

> 
>    gcc  -Os -mno-vsx -mno-altivec maxloc.c
> 
> jacob can you make sure i got that right.

that looks right, assuming you want a binary named a.out.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list