mirror of
https://github.com/mupen64plus-ae/mupen64plus-rsp-cxd4.git
synced 2024-11-23 05:29:50 +00:00
added option for convenient LTO substitution
This commit is contained in:
parent
fc808c42ea
commit
57b19c61f8
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,8 @@
|
||||
*.asm
|
||||
*.s
|
||||
*.o
|
||||
|
||||
*.o
|
||||
*.so
|
||||
obj
|
||||
|
||||
*.obj
|
||||
|
39
lto.c
Normal file
39
lto.c
Normal file
@ -0,0 +1,39 @@
|
||||
/******************************************************************************\
|
||||
* Project: Primitive LTO Merger Substitute *
|
||||
* Authors: Iconoclast *
|
||||
* Release: 2018.03.17 *
|
||||
* License: CC0 Public Domain Dedication *
|
||||
* *
|
||||
* To the extent possible under law, the author(s) have dedicated all copyright *
|
||||
* and related and neighboring rights to this software to the public domain *
|
||||
* worldwide. This software is distributed without any warranty. *
|
||||
* *
|
||||
* You should have received a copy of the CC0 Public Domain Dedication along *
|
||||
* with this software. *
|
||||
* If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. *
|
||||
\******************************************************************************/
|
||||
|
||||
/*
|
||||
* A single compile-and-link command will be sufficient with this method.
|
||||
*
|
||||
* A command exemplifying this on UNIX with all optimizations in tact may be:
|
||||
* $ cc --shared -o rsp.so lto.c -O3 -msse2 -DARCH_MIN_SSE2 -s
|
||||
*
|
||||
* To control the link-time stage during build with a separate command:
|
||||
* $ gcc -c -o rsp.o lto.c -O3 -msse2 -DARCH_MIN_SSE2
|
||||
* $ ld --shared -o rsp.so -lc rsp.o --strip-all
|
||||
*/
|
||||
|
||||
#include "module.c"
|
||||
#include "su.c"
|
||||
|
||||
#include "vu/vu.c"
|
||||
|
||||
#include "vu/multiply.c"
|
||||
#include "vu/add.c"
|
||||
#include "vu/select.c"
|
||||
#include "vu/logical.c"
|
||||
#include "vu/divide.c"
|
||||
#if 0
|
||||
#include "vu/pack.c"
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user