Mercurial > hg > Papers > 2021 > okud-thesis
diff paper/chapter/chapter2.tex @ 15:82407e7fefd9
fix
author | okud |
---|---|
date | Sun, 14 Feb 2021 15:40:34 +0900 |
parents | 1236fa28ffdd |
children | e8a0f9380734 |
line wrap: on
line diff
--- a/paper/chapter/chapter2.tex Sat Feb 13 02:11:40 2021 +0900 +++ b/paper/chapter/chapter2.tex Sun Feb 14 15:40:34 2021 +0900 @@ -2,7 +2,7 @@ \section{Continuation based C(CbC)} -Continuation based C(CbC)\cite{CbC}は、当研究室で開発されているプログラミング言語である。 +Continuation based C(CbC)\cite{CbC}は、当研究室で開発を行っているプログラミング言語である。 CbCは、C言語の下位言語であり、関数呼び出しではなく継続を導入している。 CbCでは、関数の代わりにCodeGearという単位でプログラミングを行う。 CodeGearは入力と出力を持ち、CbCでは引数が入出力になっている。 @@ -47,28 +47,26 @@ \section{CbC on GCC CrossCompile } -Singularityで環境を作成するためにファイル\ref{src:cbc_gcc_cross}を作成する。 +Singularityで環境を作成するためにソースコード\ref{src:cbc_gcc_cross}を作成する。 -\renewcommand{\lstlistingname}{ファイル} +\renewcommand{\lstlistingname}{ソースコード} \lstinputlisting[language=Bash, numbers=left, breaklines=true, basicstyle=\ttfamily\footnotesize, frame=single, caption=CbC\_gcc\_cross.def, label=src:cbc_gcc_cross]{file/cbc_gcc_cross.def} defファイルが作成できたらsingularity buildを下記のように行う。 -\renewcommand{\lstlistingname}{コマンド} \begin{lstlisting}[frame=lrbt,label=sif build,caption={singularity build}] - singularity build --fakeroot cbc_gcc_cross.sif cbc_gcc_cross.def + $ singularity build --fakeroot cbc_gcc_cross.sif cbc_gcc_cross.def \end{lstlisting} -buildで生成されたsifファイル\ref{code:cbc_gcc_arm_cross}でCrossCompileを行う。 +buildで生成されたsifソースコード\ref{code:cbc_gcc_arm_cross}でCrossCompileを行う。 例としてソースコード\ref{src:hello_cbc}を動かす。 -\renewcommand{\lstlistingname}{ファイル} \begin{lstlisting}[frame=lrbt,label=code:cbc_gcc_arm_cross,caption={singularity上でCrossCompile}] singularity shell cbc_gcc_cross.sif Singularity> arm-linux-gnueabihf-gcc src/hello.cbc Singularity> file a.out a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, not stripped \end{lstlisting} -CrossCompileにより生成されたa.outはRaspberry Piで実行することができる。 +CrossCompileにより生成されたa.outがARM PlatformのRaspberry Piで実行することができる。 -\renewcommand{\lstlistingname}{ソースコード} + \lstinputlisting[language=Bash, numbers=left, breaklines=true, basicstyle=\ttfamily\footnotesize, frame=single, caption=hello.cbc, label=src:hello_cbc]{file/hello.cbc}