rchitect-of-info
rchitect-of-info

Reputation: 1596

Best way to program flow through a job loop

I see that Origen supports passing jobs to the program command in this video. What would be the preferred method to run the program command in a job loop (i.e. job == 'ws' then job == 'ft', etc.).

thx

Upvotes: 0

Views: 30

Answers (1)

Ginty
Ginty

Reputation: 3501

The job is a runtime concept, not a compile/generate time concept, so it doesn't really make sense to run the program command (i.e. generate the program) against different settings of job.

Origen doesn't currently provide any mechanism to pass define-type arguments through to the program generator from the command line, though you could implement that in your app easily enough by overriding the program command - i.e. capture and store them somewhere in your app and then continue with the regular command.

The 'Origen-way' of doing things like this is to setup different target files with different variables set within them, then execute the program command for the different targets.

Upvotes: 1

Related Questions