Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Is it possible to change values of CPU registers under GNU/Linux with help of C programming language code?
To answer your question: Using standard C then no it's not possible.
But some compilers have extensions to allow you to write inline assembler. Also, you can write your own assembler files and have functions that can be called from your C source in them. Use an assembler to create object files that you link with the rest of your program.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
For each avx, sse4 etc intrinsic there is an open logical algorithm. I wonder if there is an official or unofficial drop in replacement of intrinsics with vanilla C code (for debugging, prototyping on arm etc)?
I have a project, SIMDe, that does it. It's not complete, but it's more substantial than anything else I'm aware of. Contributions welcome ;)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am developing an operating system using C, Assembler and the GCC Cross Compiler. I have already implemented a working kernel that prints to the screen and allows the user to type in some simple commands. I have already looked into some file systems such as FAT32 and LFS. What other options do I have about implementing my very own filesystem?
There's always Practical File System Design with the Be File System (PDF).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am new to C and I would like to know if it is possible to make colorful console menus with simple graphics, like old DOS programs used to look. I am programming on Windows PC and portability is not important for this one.
Take a look at PDCurses which is a dos/windows curses implementation (curses does all the console richness in unix/linux environments).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Basically what I want is to create an object file (maybe x64 ELF one) with assembly code which could then be linked with other object files in order to create one executable. Also I would like to export some addresses from this object and also to import some from the other object files it will link to.
I'll be happy if it can target linux x64 (I'm using OpenSuse now) and can be used with some default linker (like 'ld' maybe).
I want to make a compiler using 'C' language.
Just generate assembly code, and use the assembler to convert to object format.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What are configuration files? What are their use in c programs?
Additional question: What does it mean to have an error which states "Cannot open configuration file"?
A configuration file could be any file which the program uses to persistently store options, state, or data between executions. The concept is not specific to C and is probably universal to most programming languages. It is impossible, without knowing exactly what program you are dealing with, to figure out what they are, where they would be stored, or why the program wouldn't be able to open it.