Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

415
Views
clang -Xclang -cc1 -O3 mips.c -emit-llvm , error de clang: -emit-llvm no se puede usar al vincular

Quiero usar el front-end clang para convertir mips.c a mips.ll, que es un IR llvm.

Entonces uso el comando: clang -cc1 O3 mips.c -emit-llvm . Ocurre un error fatal: no se encuentra el archivo 'stdio.h' (que está incluido en mips.c).

Luego cambio el comando de la siguiente manera: clang -Xclang -cc1 O3 mips.c -emit-llvm . Ocurre otro error: -emit-llvm no se puede usar al vincular

¿Cómo puedo resolver el problema?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Como está escrito en el mensaje de error, solo puede compilar al emitir LLVM IR, no vincular.

Agregue -c para el código de bits o -S para la forma legible a su línea de comando:

 clang -Xclang -cc1 -O3 mips.c -emit-llvm -S
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!