Yes. That's probably the standard library which is compiled into your
program initializing itself. That code is part of your workload and not
provided by or controlled by M5.

Gabe

Weixun Wang wrote:
> Thanks for your reply.
>
> I'm running the M5 under SE mode, hence there should no be any OS.
> However, if I execute a simple helloworld program (only a printf ...)
> under M5 (TimingSimpleCPU), it requires 12492 instructions. Are you
> saying all these instructions belongs to the helloworld program?
>
> On 8/26/2010 1:00 PM, Gabe Black wrote:
>> Weixun Wang wrote:
>>   
>>> Hi List,
>>>
>>> I have several questions regarding the start-up code of M5.
>>>
>>> 1) What code does M5 execute before the actual workload assigned to
>>> it? What does it exactly do?
>>>      
>> None. All setup work is done within the simulator without running any
>> simulated code. If you're using FS the OS would have to boot before you
>> could run your user level application benchmarks, but then the OS is the
>> workload.
>>
>>   
>>> 2) If I assigned the same workload to two CPUs in a CMP config, will
>>> the start-up code do EXACTLY the same (instructions...)?
>>>      
>> Yes, they would both start with the workload.
>>
>>   
>>> 3) Is there a way to exclude the start-up code from the simulation
>>> (from stats, etc.)?
>>>      
>> It's not included.
>>
>> Gabe
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>>    
>
>

_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to