Questions tagged [compiler-specific]
47 questions
0
votes
2 answers
Is there a C struct "packed aligned" option?
Compiler: I'm personally using gcc, but the question is conceptual. I'm interested in options for any compiler.
Is there a way to tell the C compiler to make struct B have the same size as struct AB without sacrificing alignment?
It should also…

vitiral
- 8,446
- 8
- 29
- 43
0
votes
0 answers
What types of compilers can I use in Eclipse Theia?
I am new to Eclipse Theia . How can I link the compiler in Eclipse Theia?

Programmer1988
- 7
- 7
0
votes
1 answer
What is Dynamic Optimization in compilers
People are talking about dynamic optimization in compilers.What does it mean? Can anyone give me a fair idea about it?

DSC
- 103
- 2
0
votes
1 answer
How does the source code gets compiled only by a compiler?
My question is, How does a compiler converts the source code, its just a software.
Is there a role of any hardware or CPU to help compiler to do its job? Thanks.

Geetha
- 1
0
votes
0 answers
How do compilers implement dataflow analysis for arrays and pointers due to aliasing related to array indices and pointer addresses
I have looked online through google search for the above question but didn't find a easy to understand high-level idea of the approach for it. I have read through the Engineering-a-Compiler Textbook by Cooper/Torczon…

Joe Black
- 625
- 6
- 19
0
votes
1 answer
Sonarqube supports rules to enforce coding standards or not
Sonarqube produces issues with the code like bugs and security-related issues as vulnerabilities and code smell that could cause issues. Is there a way to add the coding standards to enforce conventions specific to readability and maintainability…

intechops6
- 1,007
- 4
- 22
- 43
0
votes
1 answer
How to manage duplicate assembly references C# Unity / How to compile C# project with flags
I am trying integrate RosSharp (https://github.com/siemens/ros-sharp) and Mixed Reality Toolkit into one Unity project. Both of these libraries however use Newtonsoft.Json which causes the error:
error CS1703: An assembly `Newtonsoft.Json' with the…

Enrique Avina
- 973
- 7
- 20
0
votes
1 answer
C# Abstract Class
Does a compiler compiles an abstract class in C#?
If yes then how does compiler treats an abstract class, like a normal class or there is some difference.
And if no then how does it allow inheritance of the data members and a member function of an…
0
votes
3 answers
FreeRTOS compiler
I just started learning FreeRtos. I have started with "Using the FreeRtos Real Time Kernel" pdf book of Richard Barry.
The book has comprehensive examples and I understood the principles very well but I want to be able to compile this examples…

Cantafford
- 31
- 1
- 7
0
votes
0 answers
Is it possible to generate .s file from Wind River Workbench?
I am looking for possibilities of generating ASM file or instruction trace from Wind River workbench.

RogerAKL
- 1
- 1
0
votes
1 answer
Can you explain this C definition from efilib.h?
I'm learning UEFI programming and I notice that many of the EFI header files show chunks with this syntax I can't understand:
typedef
EFI_STATUS
(EFIAPI *EFI_TEXT_STRING) (
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN CHAR16…

pr0gma
- 577
- 3
- 8
- 18
0
votes
1 answer
What Does filebuf::sync Do on an Input Buffer?
I read here that, for an input buffer, filebuf::sync's:
effects -if any- depend on the library implementation
So my question then, is can anyone tell me what those effects are for gcc and Visual Studio?

Jonathan Mee
- 37,899
- 23
- 129
- 288
0
votes
2 answers
A __attribute__((packed)) like attribute not GCC Specific
I use __attribute__((packed)); to make items of a struct being stored in memory after another as this is critical for some low-level development.
As __attribute__((packed)); is GCC specific I wonder if there is a similar solution that works on ALL…

pitastic
- 322
- 4
- 9
0
votes
3 answers
Size of implementation specific std::mbstate_t
The docs on this are rather lacking so I'm hoping the community can run a simple test and post results here so that I, and anybody else, has a reference.
#include
sizeof( std::mbstate_t );
If you could post the results here and also…

Twifty
- 3,267
- 1
- 29
- 54
0
votes
0 answers
The ".text" section accessed in memory and loaded from disc differs for GCC compiled application
The content of the '.text' section is accessed using code like this:
1) For the application which is loaded into memory (i.e. executing):
//accessing code in memory
PIMAGE_DOS_HEADER pDOSHeader = NULL;
pDOSHeader =…

ChatCloud
- 1,152
- 2
- 8
- 22