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
802707f1
Commit
802707f1
authored
2 years ago
by
Virgile Prevosto
Committed by
Andre Maroneze
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[machdep] remove obsolete test file
parent
655787cd
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
make_machdep/make_machdep.py
+0
-1
0 additions, 1 deletion
make_machdep/make_machdep.py
make_machdep/sizeof_alignof_standard.c
+0
-51
0 additions, 51 deletions
make_machdep/sizeof_alignof_standard.c
with
0 additions
and
52 deletions
make_machdep/make_machdep.py
+
0
−
1
View file @
802707f1
...
@@ -153,7 +153,6 @@ source_files = [
...
@@ -153,7 +153,6 @@ source_files = [
(
"
sizeof_longdouble.c
"
,
"
number
"
),
(
"
sizeof_longdouble.c
"
,
"
number
"
),
(
"
sizeof_void.c
"
,
"
number
"
),
(
"
sizeof_void.c
"
,
"
number
"
),
(
"
sizeof_fun.c
"
,
"
number
"
),
(
"
sizeof_fun.c
"
,
"
number
"
),
(
"
sizeof_alignof_standard.c
"
,
"
number
"
),
(
"
alignof_short.c
"
,
"
number
"
),
(
"
alignof_short.c
"
,
"
number
"
),
(
"
alignof_int.c
"
,
"
number
"
),
(
"
alignof_int.c
"
,
"
number
"
),
(
"
alignof_long.c
"
,
"
number
"
),
(
"
alignof_long.c
"
,
"
number
"
),
...
...
This diff is collapsed.
Click to expand it.
make_machdep/sizeof_alignof_standard.c
deleted
100644 → 0
+
0
−
51
View file @
655787cd
/**************************************************************************/
/* */
/* This file is part of Frama-C. */
/* */
/* Copyright (C) 2007-2023 */
/* CEA (Commissariat à l'énergie atomique et aux énergies */
/* alternatives) */
/* */
/* you can redistribute it and/or modify it under the terms of the GNU */
/* Lesser General Public License as published by the Free Software */
/* Foundation, version 2.1. */
/* */
/* It is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU Lesser General Public License for more details. */
/* */
/* See the GNU Lesser General Public License version 2.1 */
/* for more details (enclosed in the file licenses/LGPLv2.1). */
/* */
/**************************************************************************/
#include
"make_machdep_common.h"
/* We want to obtain values produced by the compiler.
In an ideal scenario, we are able to execute the binary, so we can just use
printf(). However, when cross-compiling, we may be unable to run the program.
Even worse, we may lack a proper runtime, and thus simply obtaining an
executable may be impossible.
However, we don't really need it: having an object file (with symbols) is
usually enough.
We store the values in global variables, since at the very least we can
examine the object file to retrieve the data.
*/
unsigned
char
sizeof_short
=
sizeof
(
short
);
unsigned
char
sizeof_int
=
sizeof
(
int
);
unsigned
char
sizeof_long
=
sizeof
(
long
);
unsigned
char
sizeof_longlong
=
sizeof
(
long
long
);
unsigned
char
sizeof_ptr
=
sizeof
(
void
*
);
unsigned
char
sizeof_float
=
sizeof
(
float
);
unsigned
char
sizeof_double
=
sizeof
(
double
);
unsigned
char
alignof_short
=
ALIGNOF
(
short
);
unsigned
char
alignof_int
=
ALIGNOF
(
int
);
unsigned
char
alignof_long
=
ALIGNOF
(
long
);
unsigned
char
alignof_longlong
=
ALIGNOF
(
long
long
);
unsigned
char
alignof_ptr
=
ALIGNOF
(
void
*
);
unsigned
char
alignof_float
=
ALIGNOF
(
float
);
unsigned
char
alignof_double
=
ALIGNOF
(
double
);
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