Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fibre local storage (Fls*) functions for armcc #55

Merged
merged 6 commits into from
Oct 17, 2023
Merged

Conversation

mkst
Copy link
Contributor

@mkst mkst commented Oct 16, 2023

I dunno if there is a better way than copy/paste to support these?

Closes #50:

$ ~/github/wibo/build/wibo armcc.exe
Product: unknown
Component: unknown
Tool: armcc [5040081]

Usage:         armcc [options] file1 file2 ... filen
Main options:
        
--arm          Generate ARM code
--thumb        Generate Thumb code
--c90          Switch to C mode (default for .c files)
--cpp          Switch to C++ mode (default for .cpp files)
-O0            Minimum optimization
-O1            Restricted optimization for debugging
-O2            High optimization
-O3            Maximum optimization
-Ospace        Optimize for codesize
-Otime         Optimize for maximum performance
--cpu <cpu>    Select CPU to generate code for
--cpu list     Output a list of all the selectable CPUs
--device <dev> Set the target device type
--device list  Output a list of all the selectable devices
-o <file>      Name the final output file of the compilation
-c             Compile only, do not link
--asm          Output assembly code as well as object code
-S             Output assembly code instead of object code
--interleave   Interleave source with disassembly (use with --asm or -S)
-E             Preprocess the C source code only
-D<symbol>     Define <symbol> on entry to the compiler
-g             Generate tables for high-level debugging
-I<directory>  Include <directory> on the #include search path

Note: just tried to use the Tls* functions, but armcc uses both FLS and TLS, so that's a no-go!

@mkst mkst force-pushed the add-fls-functions branch from 00412a0 to 83efc3e Compare October 17, 2023 18:40
dll/kernel32.cpp Outdated Show resolved Hide resolved
dll/kernel32.cpp Outdated Show resolved Hide resolved
dll/kernel32.cpp Outdated Show resolved Hide resolved
dll/kernel32.cpp Outdated Show resolved Hide resolved
mkst and others added 5 commits October 17, 2023 21:19
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
@mkst mkst merged commit 30ef434 into main Oct 17, 2023
2 checks passed
@ethteck ethteck deleted the add-fls-functions branch October 27, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

armcc_504_82 needs FlsAlloc (KERNEL32.DLL)
2 participants