﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3861	Do not use preprocessor for code generation	Martin Sjölund	Martin Sjölund	"The current code generator uses the pre-processor for lookup from variable name to its corresponding array and index in this array.

This is not scalable and needs to change (with 500k variables, the model.h is 400MB in size and empty files take 15 seconds to compile, prevent speed-up by splitting compilation into more files).

I see two main ways of doing this:

1. Walk the SimCode structure, replacing any CREF expressions, etc with a `CREF_CODEGEN(EnumArrayName, IntegerIndex, CREF /* for error-messages*/)`
1. Send in a hash-table to the generator

I prefer the first choice since we need less logic in the code generator, not more. We could perhaps even have special CREF structures for arrays and records, etc...

Any volunteers for implementation?"	enhancement	closed	high		Code Generation		fixed		Francesco Casella Lennart Ochel Willi Braun Volker Waurich Adrian Pop Per Östlund
