On Oct 17, 2012, at 4:53 PM, Amol Tasgaonkar wrote:

> So does this means that we cannot use STL's too ? I am surprized to know this.
> 

EFI is like the kernel or devices drivers and it is written in C. I don't think 
there is any C++ support on the open source? I was just reference some one was 
doing the experiment  on the side and talking about it on the mailing list. 

Well all you have to do is link your application without any standard libs. All 
the intrinsic calls generated by the complier and std libs called by your code 
will fail to link. You can then implement these functions in an library that 
does the right thing for EFI and you should be good. When you have this 
exercise in front of you the idea of embedded C++ may seem like a better 
idea..... I'm sure that is the only reason some one started with embedded C++ 
as it would be easier to port. 

Thanks,

Andrew

> From: Andrew Fish <af...@apple.com>
> To: Amol Tasgaonkar <amol...@yahoo.com>; edk2-devel@lists.sourceforge.net 
> Sent: Wednesday, October 17, 2012 4:11 PM
> Subject: Re: [edk2] Does UEFI support C++ Exception handling.
> 
> On Oct 17, 2012, at 4:04 PM, Amol Tasgaonkar wrote:
> 
>> Hi,
>> I wanted to check if I could have C++ exception handling done in the EFI 
>> application/
> 
> No. We generally don't support C++, I think some folks may have played with 
> embedded C++, but that does not support exceptions either. 
> 
> We don't link against standard libraries, and we generally try to avoid 
> writing code that generates compiler intrinsics where possible. 
> 
>>  
>> Thank,
>>  
>> With Best Regards,
>> -Amol.
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________
>> edk2-devel mailing list
>> edk2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> 
> 
> 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to