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
a2ff748c
Commit
a2ff748c
authored
2 years ago
by
Virgile Prevosto
Committed by
Andre Maroneze
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[doc] update doc of cpp_arch_flags machdep field
parent
8d4dd13a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/developer/advance.tex
+6
-7
6 additions, 7 deletions
doc/developer/advance.tex
share/machdeps/machdep-schema.yaml
+2
-2
2 additions, 2 deletions
share/machdeps/machdep-schema.yaml
with
8 additions
and
9 deletions
doc/developer/advance.tex
+
6
−
7
View file @
a2ff748c
...
...
@@ -3269,13 +3269,12 @@ We present below a thorough description of each field.
compiler-specific extensions.
\end{itemize}
Note that some compiler extensions, such as attributes, are always enabled.
\item
[\texttt{cpp\_arch\_flags}]
: list of arguments to be added to the
command-line when invoking the C preprocessor. Typically used to ensure that
multiarch compilers apply the appropriate predefined macros
\footnote
{
Note that
the sizes of standard integer types are already defined in the machdep,
so they do not depend on these flags.
}
.
E.g. use
\verb
+
["-m32"]
+
for a 32-bit machdep when preprocessing with a
64-bit multiarch GCC.
\item
[\texttt{cpp\_arch\_flags}]
: list of arguments used by the compiler to
select the corresponding architecture, e.g.
\verb
+
["-m32"]
+
for a 32-bit
machdep. Older versions (up to 26.x - Iron) of
\framac
did pass these flags to the pre-processor,
in order for it to define a set of built-in macros related to said architecture.
Current versions do not use this field, and rely on
\texttt
{
\texttt
{
custom
\_
defs
}}
containing the appropriate definitions.
Note that, in practice, very few programs rely on such predefined macros,
such as
\verb
+
__x86_64
+
and
\verb
+
__i386
+
.
\end{description}
...
...
This diff is collapsed.
Click to expand it.
share/machdeps/machdep-schema.yaml
+
2
−
2
View file @
a2ff748c
...
...
@@ -87,8 +87,8 @@ compiler:
cpp_arch_flags
:
description
:
|
arguments to be given to the compiler
when this machdep is selected
(e.g. '-m32')
arguments to be given to the compiler
to select the corresponding
architecture
(e.g. '-m32')
type
:
list
...
...
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