Questions tagged [GCC] (152)

1
answer

Why is not going to object(Nasm) file in the Executive?

There is code written in NASM: global start section .data message: db "Hello, World", 10 section .text start mov rax, 0x20000004 mov rdi, 1 mov rsi, message mov rdx, 13 syscall mov rax, 0x20000001 xor rdi, rdi syscall Assemble his team nasm -f macho64 file.asm The resulting file file.o trying to turn into a Exec...
Hilda_Emmerich asked April 9th 20 at 09:45
2
answers

How to read the function arguments on the stack to force gcc to store the function arguments on the stack?

Tried __attribute__(__cdecl__) and CMAKE_C_FLAGS "-O0 " did not help. void foo (char arg1, int arg2, ... ); At the point of call of foo ('a', 5, 'b', 39, 'c', 46, 'd', 55) definition void __attribute__((__cdecl__)) SumIntDouble(char type_code, int arg, ...) { printf("VIEW: %c\n", *(&type_code + 0)); printf("VIEW...
Rebecca_Gleas asked April 8th 20 at 10:09
1
answer

What is the error in the code of a nested Assembly?

I work for the dev, in Ubuntu. Started working in the gcc. Took assembler, and tried to make primevial. But something went wrong. Code:#include <iostream> #include <stdio.h> using namespace std; int main(int argc, char** argv) { int a, b, c; cin >> a; cin >> b; asm ( "mov a, %eax \n\t" "mov b...
riley_Dooley22 asked April 4th 20 at 01:51
1
answer

How to fix an implicit function Declaration in your code?

Hello. There is a file kmain.c, there we have the entry point and main function that uses the function initVGAMemory();the function prototype described in the header file vgamemory.h(implementation in vgamemory.c). To kmain.c is connected to only one header file kernel.h, it vgamemory.h in no way connected, it turns out, in...
prudence_Ebert asked April 2nd 20 at 16:22
2
answers

Install new compilers on CentOS6?

I have a Centos 6 version, you need to compile project with-std=gnu17 is installed devtoolset-2 but it does not support standard 17, be like?
Khalid_Wiso asked April 2nd 20 at 15:30
3
answers

Why empty C program is 6 kilobytes?

The C language was designed as a close comparable to machine instructions. Some argue that programming it is almost as efficient as assembler. I'm new to this language and decided to conduct a little experiment to see how long it will take, an empty program with the following code:int main () { return 0; } The compiler is ...
Myles asked March 31st 20 at 21:03
1
answer

How to compile library for Qt under windows?

Suppose there is a library in C++ - openbabel I need to compile it to connect to the qt project I downloaded it and Rosaryville (openbabel-openbabel-2-4-0.zip) Trying to compile as there are not written out My question is a bit similar to this , but still it did not help me to understand Need to work on the following plat...
lulu_Hans asked March 31st 20 at 14:59
4
answers

How to build PHP extension on Windows x64, from Linux?

I tried to configure./configure --host=x86_64-w64-mingw32 But after make, the output is .a file and not .dll. What am I doing wrong?
buster3 asked March 31st 20 at 14:12
1
answer

Is there a compatibility table of compilers and versions of libraries?

In General, the essence of the question is, which versions of the standards C are represented in one form or another, versions of libraries libstdc++ For example, there is a conclusion[root@nightmare bin]# strings /lib/libstdc++.so.6 | grep GLIBC GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3....
Micheal.Gusikowski asked March 30th 20 at 00:49
2
answers

Why Assembly code (GNU assembler) is compiled on one machine but does not compile on another?

.hello_str: .string "Hello, GAS!" .globl main .type main, @function main: movl $.hello_str, %edi call puts@PLT movl $0, %edi call exit@PLT compile like this:gcc-o a.out ./1_1.s On both machines is the 64-bit Ubuntu. One compiles, the other swears.gcc-o a.out ./1_1.s /usr/bin/ld: /tmp/ccTxc4Ax.o: relocation R_X86_64_3...
shea17 asked March 25th 20 at 13:09