Questions tagged [lcc]

lcc is described as "A Retargetable Compiler for ANSI C"

lcc is a retargetable compiler for ANSI C ("ANSI" being the 1989/1990 standard).It generates code for the ALPHA, SPARC, MIPS R3000, and Intel x86 and its successors.

The official lcc website is https://sites.google.com/site/lccretargetablecompiler/.

(Not to be confused with lcc-win / lcc-win32, a compiler system for Windows based on lcc.)

6 questions
2
votes
1 answer

Retargeting lcc compiler: passing structure arguments

I am trying to retarget lcc for a custom VM. I am facing a problem when passing structures as arguments (by value). The VM's stack grows from low to high addresses. The offsets for the structure fields are being incorrectly generated for arguments.…
pank4j
  • 451
  • 4
  • 7
1
vote
1 answer

Unsupported 16 bit application

I just downloaded and installed the lcc64 compiler. To test if it works, i compiled this program #include int main(int argc, char *argv[]) { printf("test"); return 0; } by using lcc64.exe Source.c -o prog.exe. But if i try to…
Clyme
  • 84
  • 2
  • 12
0
votes
1 answer

Change the default compiler from lcc to MSVS running in Rapid accelerator mode

I am trying to run a Simulink file which contain S-functions along with other Simulink blocks in rapid accelerator mode. When tried to build the executable I am getting a error to change the compiler from LCC to supported compilers. Note: Matlab…
Akhil Nandan
  • 315
  • 2
  • 9
0
votes
0 answers

Does newest LCC-win64 support ISO C99 standard math library?

A while back, LCC did not support C99: e.g. if I use math functions, such as "sinf", "acosh", it did not work. I have heard that they have been adding support for C99 in the last few years. Does anyone know whether the latest support C99 ISO? Is…
knightyangpku
  • 75
  • 1
  • 4
0
votes
1 answer

Compiling string literals in ASM for SDCC/LCC

I'm trying to write string literals in ASM for GBDK's LCC. I can write each individual character and the compiler is working fine. .D_LINE = 0x0A ;; Works .db "G", "I", "A", "N", "L", "U", "C", "A", #.D_LINE However, when I try and combine the…
bashaus
  • 1,614
  • 1
  • 17
  • 33
-2
votes
1 answer

C Programming: Computing mean effective pressure

So I'm very new to C programming and I'm being asked to write a programming to compute the mean effective pressure of an internal combustion engine's cylinder. I'm given: MEP = (66,000 * HP) / (L * A * RPM) A = (pi * D^2) / 4 (cross sectional area…
Joey
  • 11