Skip to content

Commit

Permalink
v cclibs
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Ponyatov <dponyatov@gmail.com>
  • Loading branch information
ponyatov committed Mar 24, 2019
1 parent e80af8f commit d524ff4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
24 changes: 21 additions & 3 deletions book/mcu/arm/gnugcc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@
Для распаковки исходного кода из архивов применяется набор шаблонов:
\begin{lstlisting}[language=make]
$(SRC)/%/README: $(GZ)/%.tar.bz2
cd $(SRC) ; bzcat $< | tar x
cd $(SRC) ; bzcat $< | tar x && touch $@
$(SRC)/%/README: $(GZ)/%.tar.xz
cd $(SRC) ; xzcat $< | tar x
cd $(SRC) ; xzcat $< | tar x && touch $@
$(SRC)/%/README: $(GZ)/%.tar.gz
cd $(SRC) ; zcat $< | tar x
cd $(SRC) ; zcat $< | tar x && touch $@
\end{lstlisting}

\begin{lstlisting}[language=make]
Expand All @@ -196,3 +196,21 @@
\begin{lstlisting}[language=make]
CFG_MPC = $(CFG_CCLIBS) --with-gmp=$(CROSS)
\end{lstlisting}

Для сборки компилятора GCC с набором оптимизаций циклов Graphite:

\begin{lstlisting}[language=make]
CFG_ISL = $(CFG_CCLIBS) --with-gmp-prefix=$(CROSS)

isl: $(CROSS)/lib/libisl.a
$(CROSS)/lib/libisl.a: $(SRC)/$(ISL)/README
mkdir $(TMP)/$(ISL) ; cd $(TMP)/$(ISL) ; \
$(CFG) $(CFG_ISL) && make && make install

CFG_CLOOG = $(CFG_CCLIBS) --with-gmp-prefix=$(CROSS)

cloog: $(CROSS)/lib/libcloog-isl.a
$(CROSS)/lib/libcloog-isl.a: $(SRC)/$(CLOOG)/README
mkdir $(TMP)/$(CLOOG) ; cd $(TMP)/$(CLOOG) ; \
$(CFG) $(CFG_CLOOG) && make && make install
\end{lstlisting}
2 changes: 1 addition & 1 deletion mcu
Submodule mcu updated 1 files
+36 −22 Makefile

0 comments on commit d524ff4

Please sign in to comment.