Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
7e81e530
Commit
7e81e530
authored
3 years ago
by
David Bühler
Committed by
Andre Maroneze
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] User manual: updates the default Frama-C machdep.
parent
5e483442
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/doc/userman/provides.tex
+8
-8
8 additions, 8 deletions
src/plugins/e-acsl/doc/userman/provides.tex
with
8 additions
and
8 deletions
src/plugins/e-acsl/doc/userman/provides.tex
+
8
−
8
View file @
7e81e530
...
...
@@ -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
}
. A
rchitecture 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 a
rchitecture 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment