Skip to content

Instantly share code, notes, and snippets.

@sgraham
Created February 11, 2023 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgraham/0876cb01e6984ff4a1403464bf3e08f6 to your computer and use it in GitHub Desktop.
Save sgraham/0876cb01e6984ff4a1403464bf3e08f6 to your computer and use it in GitHub Desktop.
(pique) c:\src\pique\tmp>dir *.ll
Volume in drive C has no label.
Volume Serial Number is A620-41DC
Directory of c:\src\pique\tmp
2023-02-09 11:25 PM 43,550 comparison.ll
2023-02-09 11:25 PM 213,017 control.ll
2023-02-09 11:25 PM 50,781 destructuring.ll
2023-02-09 11:25 PM 1,472,384 functional.ll
2023-02-05 07:02 PM 42,364 hello_world_main.ll
2023-02-09 11:25 PM 261,079 io.ll
2023-02-09 11:25 PM 1,761,212 lists.ll
2023-02-09 11:25 PM 32,052 math.ll
2023-02-09 11:25 PM 54,678 prelude.ll
2023-02-09 11:25 PM 682,061 sort.ll
2023-02-09 11:25 PM 3,503,994 strings.ll
2023-02-09 11:25 PM 219,511 sys.ll
2023-02-09 11:25 PM 924,251 templates.ll
2023-02-09 11:25 PM 420,402 types.ll
14 File(s) 9,681,336 bytes
0 Dir(s) 317,889,896,448 bytes free
(pique) c:\src\pique\tmp>copy c:\src\pique\runtime\build\runtime.ll
1 file(s) copied.
(pique) c:\src\pique\tmp>clang -c -g -O0 runtime.ll hello_world_main.ll prelude.ll comparison.ll control.ll lists.ll typ
es.ll destructuring.ll io.ll strings.ll functional.ll math.ll sort.ll templates.ll sys.ll
(pique) c:\src\pique\tmp>dir *.o
Volume in drive C has no label.
Volume Serial Number is A620-41DC
Directory of c:\src\pique\tmp
2023-02-10 08:38 PM 13,044 comparison.o
2023-02-10 08:38 PM 75,113 control.o
2023-02-10 08:38 PM 18,064 destructuring.o
2023-02-10 08:38 PM 545,495 functional.o
2023-02-10 08:38 PM 14,862 hello_world_main.o
2023-02-10 08:38 PM 87,431 io.o
2023-02-10 08:38 PM 586,722 lists.o
2023-02-10 08:38 PM 11,463 math.o
2023-02-10 08:38 PM 23,335 prelude.o
2023-02-10 08:38 PM 176,395 runtime.o
2023-02-10 08:38 PM 222,020 sort.o
2023-02-10 08:38 PM 1,228,284 strings.o
2023-02-10 08:38 PM 75,943 sys.o
2023-02-10 08:38 PM 344,801 templates.o
2023-02-10 08:38 PM 146,421 types.o
15 File(s) 3,569,393 bytes
0 Dir(s) 317,887,832,064 bytes free
(pique) c:\src\pique\tmp>clang -o hello_world.exe *.o
control.o : fatal error LNK1227: conflicting weak extern definition for 'cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967'. New default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.control. function.for' conflicts with old default '.weak.cstring_423c6d05a0e17f4e271a89cbe05f632eec310775816460352f48916395f51967.default.comparison. function.not' in comparison.o
clang: error: linker command failed with exit code 1227 (use -v to see invocation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment