Quote:
Originally Posted by
koustubh
I was wondering if it possible to do it in a single command while creation.
No, this isn't possible, save for some very limited (and probably pointless) exceptions: how much RAM and how many processor cycles your process consumes depends on things only known during runtime: user actions, size and content of input files, signals issued to the process, etc.. All these things will influence the actions of and hence the resources consumed by a process.
It is possible to determines such resources consumed afore in some very specialised areas: real-time signal processors for instance. But it is possible only because the input is of a known size (like: "20-bit sampling at 96kHz", as in AC'97, which yields a constant data rate of about 512 kB/s) and content and there are no other outside factors (signals, user interaction, ...) to influence the operation of such a program.
I hope this helps.
bakunin