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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Wed Nov 1 11:44:13 GMT 2023


--- Comment #13 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #12)
> (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

the command is going in the tutorial, but yes good idea.

> .PHONY: all clean
> all: maxloc

too complex. too many lines and targets.  this is intended as a REAL
drastic simple tutorial.

shriya only use these two lines in a file named "Makefile".
as jacob says make sure the indent is a tab not spaces.

maxloc: maxloc.c
     gcc -Os -mno-vsx -mno-altivec maxloc.c -o 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.

yes. short. simple.

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

More information about the libre-soc-bugs mailing list