Handling of local variables in the backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

One issue I am facing at the moment is that there is no explicit
alloca for each symbol that is used in a function - so that the
backend has to detect when a symbol is accessed and then do alloca to
associate stack space. In the LLVM backend this is not so much an
issue as LLVM allows instructions to be inserted at a particular point
- so my code just ensures that all the allocas go at the start of the
function as required by LLVM. But I am having trouble with the other
backend that doesn't have this capability.

I think that there is no easy way to identify all the symbols used for
which stack space is needed and do the allocas at the start - is
there? I mean the only way is to go through all the instructions to
find these references as far as I know.

Is there a better way?

Regards
Dibyendu
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux