Skip to content
Snippets Groups Projects
Commit 7e81e530 authored by David Bühler's avatar David Bühler Committed by Andre Maroneze
Browse files

[eacsl] User manual: updates the default Frama-C machdep.

parent 5e483442
No related branches found
No related tags found
No related merge requests found
......@@ -101,19 +101,19 @@ Using \shortopt{ocode} \framac~\cite{userman} option, the code generated by the
\framac uses architecture-dependent configuration which
affects sizes of integer types, endianness and potentially other features. It
can be seen that the code generated from \texttt{first.i} (shown in the
previous section) defines \C type \texttt{size\_t} as \texttt{unsigned int}, whereas
in 64-bit architectures \texttt{size\_t} is typically defined as
\texttt{unsigned long}. Architecture used during \framac translation is
previous section) defines \C type \texttt{size\_t} as \texttt{unsigned long}, whereas
in 32-bit architectures \texttt{size\_t} is typically defined as
\texttt{unsigned int}. The architecture used during \framac translation is
controlled through \framac \shortopt{machdep} option that specifies the
architecture type to use during translation. The default value of
\shortopt{machdep} is \texttt{x86\_32} (a generic 32-bit x86 architecture).
\shortopt{machdep} is \texttt{x86\_64} (a generic 64-bit x86 architecture).
Note that since code generated by \eacsl is aimed at being compiled it is
important that the architecture used by \framac matches the architecture
corresponding to your compiler and your system. For instance, in a 64-bit
corresponding to your compiler and your system. For instance, in a 32-bit
machine you should also pass
\shortopt{machdep} \texttt{x86\_64} option as follows:
\shortopt{machdep} \texttt{x86\_32} option as follows:
\begin{shell}
\$ frama-c -machdep x86_64 -e-acsl first.i -then-last \
\$ frama-c -machdep x86_32 -e-acsl first.i -then-last \
-print -ocode monitored_first.c
\end{shell}
......@@ -286,7 +286,7 @@ compiled on the very same architecture (or cross-compiled for it) for the
compiler being able to generate a correct binary.
\framac makes assumptions about the machine architecture when analyzing source
code. By default, it assumes an X86 32-bit platform, but it can be customized
code. By default, it assumes an X86 64-bit platform, but it can be customized
through \shortopt{machdep} switch~\cite{userman}. This option is of primary
importance when using the \eacsl plug-in: it must be set to the value
corresponding to the machine architecture which the generated code will be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment