Description:
The lcc C Compiler and related topics.
|
|
|
operand swapping
|
| |
Hello, I am a newbie in LCC, I wonder if anybody can help me out with a problem which I think is quite fundamental. I understand that LCC’s ADDI is a 3 operand operation in the form %c = %0 + %1 My target machine can only handle a 2 operand ADD operation (ie ADD a, b), a = a + b I inspected the x86.md machine description from the LCC installation... more »
|
|
string splitting plzzzzzz help me...
|
| |
teapot wrote, On 06/05/08 14:47: ...<snip problems trying to download lcc-win32> I suggest emailing Jacob directly or asking on comp.compilers.lcc in case he does not see your question here. I've cross-posted and set follow-ups for you.
|
|
Code generator detail
|
| |
I think there might be a problem with code for indirect calls: int *pcptr; /* global */ /* Details from much larger code */ stopped=0; do { ((void(*)(void))*pcptr)(); ...pcptr usually (99.9%) points to a location containing the address of one of two functions, both identical to this: void pushm {... more »
|
|
why cant functions return arrays
|
| |
...Because you tell it to: int a[10]; // Normal C array Vector v = newVector(10,sizeof(int)); a[2] = 5; v[2] = 5; ...All argument passing are assignments in standard C. But if you want C++, no, it is not C++.
|
|
warning: conversion from `pointer to void'
|
| |
... The following example code compiled with $ lcc -c fp.c -o fp.o produces these warnings: fp.c:2: warning: conversion from `pointer to void' to `pointer to int function(int)' is compiler dependent fp.c:3: warning: conversion from `pointer to void' to `pointer to int function(int)' is compiler dependent... more »
|
|
building lcc 4.2 on linux
|
| |
Hi, I've just built lcc for linux and found some issues that perhaps could be fixed: * As reported before, (Message-ID: <bvqf4t$ft...@grizzly.ps.uni-s b.de> or <1156087442.615889.184...@b28g 2000cwb.googlegroups.com>) cpp is not longer found /usr/lib/gcc/i486-linux-gnu/4. 1.2/ (or similar). So, if the gcc preprocessor is still required (is it?),... more »
|
|
lccwin32's import library function..
|
| |
I build DLLs using MS VC6 to shield tmy programs from the uglyness that is Windows/C++ (DLL offers C interface to C++ Windows stuff like SAPI 5). I can use these DLLs with mingw after importing the related import library. However, it did not work with lccwin32 - unresolved references (compiler cannot find any DLL functions). After a lot of head scratching I attempted... more »
|
|
Does Icc support the 80286 compiler?
|
| |
All, I am searching for a compiler to run code on an embedded 80286. I came across the Icc compiler doing a Google search and would like to know if it will meet my needs. I tried looking for docs.... The specific questions are: 1. Can it generate 80286 machine code? 2. Can it cross-compile to 80286 from a XP Machine?... more »
|
|
VLA parameters
|
| |
I get a diganostic from: ----------------------- ...void f(int n, int a[n][n]) { exit(a[0][0]); ...int main(void) { int A[3][3] = {0}; f(3, A); ...----------------------- The code looks fine to me.
|
|
|