Sorry, I'm afraid that I gave weak explanation. What if my assembler program asm.s and c program my.c compiled as a solid output using command gcc -shared -fpic -o lib.so my.c asm.s?
Type: Posts; User: Wido
Sorry, I'm afraid that I gave weak explanation. What if my assembler program asm.s and c program my.c compiled as a solid output using command gcc -shared -fpic -o lib.so my.c asm.s?
Hi all!
Please, help to understand how could I pass string from C program into GNU Assembler one and operate it in GNU Assembler. Where could I read about it detailed explanation?
Thank you.
Hello all!
my.c
#define EXPORT __attribute__((visibility("default")))
EXPORT int foo(void);
int foo(void)
{
extern int _new();
return _new();
}
Hello all!
What free tools have the best recommendations in community to fast recognizing memory leaks and threads races of C# program under Linux? Where I can obtain reference manuals about them?...
Hello all!
Is it possible today to establish communication with browser using raw socket in C?
Thank you.
Hi guys!
Could anyone tell me where to obtain correct and complete FastCGI protocol implementation with multiplexing or get details about it's implementation? I know h2o webserver but don't know...
Hello all!
What is the most widely used and long-life C programming language standard version? I didn't found that info. Wikipedia says that C89 is most popular among compilers.
Thank you.
Perhaps C17 make overhead with new features but doesn't hence that C17 beat C89 with better compiler.
Hello all!
Could you tell me how to install latest stable gcc9 on my linux mint machine? Now, I have
I want to get more.
Hello everybody!
Does the performance of my program depend on C standard used in compilation in the GCC case?
Thank you.
Hello all! I have found that Fortran on numerical data has better than C performance. What are the programming languages which have better than C performance? I know about machine codes and assembly....
Hello all!
Thank you for your assistance.
Do anybody know published C# next final standard publication date?
Hello all!
Could you advice free Linux distros that completely support C17 standard in GCC? In some cases it maybe any GSRC supporting distros.
Thank you.
Native in my message means directly, not across simple utilities like GLUT. I'm using Linux with GCC.
Hello all!
How to set up and get started with native OpenGL library?
Thank you.
Finally,
gcc -o add.dll -s -shared add.c -D ADD_EXPORTS -m64
then
[DllImport("add.dll")]
works with x64 .Net Core app.
I'm using mingw 32-bit but mingw-w64 with -m64 gcc flag compilation were needed. It works.
add.c
#include "add.h"
int ADDCALL Add(int a, int b)
{
return (a + b);
}
add.h
Hello all!
I would like to use this article HOWTO Create and Deploy a Sample DLL using MinGW | MinGW
but it's not clear for instance how to create DLL from C source using GCC instead of G++ that I...
Hello all!
I'm reading K&R about C language now. Could any one explain so strange behavior?
while ((c = getchar()) != EOF)
{
printf("%c", c);
}
Hello all!
My main.c in C code:
#include <stdio.h>void main()
{
printf("Hello world\n");
}
I'm running gcc main.c -o main.dll using Terminal. .Net Core console app:
Hello all!
Could anyone explain how to use free and opensource databases with C (gcc)?
Hello all!
Does anybody familiar with these packages? Could I get any tutorials for windows and linux, please? Thank you.
Hello all!
Is there a C11 standard book or guides?
Thank you.
Hello all!
I'm trying to understand RFC-7540 and I hope you could tell a little bit more about how to implement https connection preface (page 11 of this doc). May be, I could get this info in C...