Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
703602-Compiler-Construction
Commits
9d1e140c
Commit
9d1e140c
authored
Feb 05, 2021
by
Alexander Hirsch
Browse files
Spec: Single precision floating point arithmetic is sufficient
parent
666a1860
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
specification.md
specification.md
+3
-1
No files found.
specification.md
View file @
9d1e140c
...
...
@@ -418,7 +418,9 @@ The mC compiler targets x86 and uses GCC as back-end compiler.
On an x86_64 system, GCC multi-lib support must be available and the flag
`-m32`
is passed to the compiler.
The code generated by the back-end is compiled with the
[
GNU Assembler
](
https://en.wikipedia.org/wiki/GNU_Assembler
)
(
by
GCC).
Pay special attention to floating point and integer handling.
Single precision floating point arithmetic is sufficient.
The
`print_float`
built-in only outputs 2 decimal places.
Use
[
cdecl calling convention
](
https://en.wikipedia.org/wiki/X86_calling_conventions#cdecl
)
.
It is paramount to correctly implement the calling convention, otherwise the stack may get corrupted during function calls and returns.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment