• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 55 56 57 58 59 ... 111 Next »

ICC is able to compile Dolphin perfectly.
View New Posts | View Today's Posts

Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
ICC is able to compile Dolphin perfectly.
04-12-2011, 07:41 PM (This post was last modified: 04-14-2011, 02:01 AM by lannyboy.)
#1
lannyboy Offline
Member
***
Posts: 221
Threads: 6
Joined: Mar 2009
hi guys... icc can compile dolphin perfectly with some patches. i just had r7454 compiled with x86 ssse3. i also patched to some cpp so icc can compile the videodx11 project.

here are the stuffs you need to change:

Quote:videodx11 project - d3dtexture.cpp - line 69 until 71 =>
[color=#0000CD] PanicAlert("Failed to create texture at %s, line %d\n", __FILE__, __LINE__);
std::unique_ptr<D3DTexture2D>::reset;
return;[/color]

Quote:videodx11 project - framebuffermanager.cpp - line 151 until 152 =>
[color=#0000CD] m_efb.resolved_color_tex.reset(NULL);
m_efb.resolved_depth_tex.reset(NULL);[/color]

Quote:videodx11 project - d3dutil.cpp - line 55 until 56 =>
[color=#0000CD] for (auto obs=observers.begin(); obs != observers.end(); ++obs)
**obs = true;[/color]

compile the dolphin with icc extra switches: [color=#FF0000]/Qstd=c++0x /D "nullptr=0"[/color] (with all projects run with these 2 switches.)

=> [color=#DAA520]wiimote is fixed.[/color]
=> [color=#DAA520]dx11 is also fixed.[/color]

have fun.



here you are Big Grin the [color=#FF1493]7454 x86 ssse3 build[/color] => http://www.mediafire.com/?18aiv5kbaq86bm9 (not included the texcache-rewrite at r7452-r7454)

okay, lectrode. i leave the rest for you. i am going to hibernate again. pm me, if you have trouble in codes and compilation. thanks

enjoy, guys Smile



please don beg me for compilation Smile thank you. i already quited to compile long long time ago Smile lectrode will do the rest of the works.

i also attach the patch incase you guys lazy Smile



in some games i tested, let say [wii] harvest moon - tree of tranquility. text couldn't show a full sentence in the chatbox until a button is pressed (only in normal/fast mode, this also happened before the entire dolphin solution upgraded to vs2010). the behaviour was affected by [color=#0000CD]nullptr[/color]. there is no [color=#0000CD]nullptr_t[/color] understood by icc (c++0x standard). therefore, it must declares nullptr as 0. there're a lot developers simulated the nullptr in gcc, icc... however they never succeeded :/ these simulations [color=#C71585]may not[/color] intimate nullptr_t exactly as in vc++ until icc recognizes nullptr_t. we shall wait for the next version of icc if they really want to implement nullptr_t. this implementation will still depend to the demands from intel c++ developers.

like i just tested on:

Quote:const class nullptr_t {
public:
template<class T>
operator T*() const { return 0; }
template<class T, class U>
operator T U::*() const { return 0; }

private:
void* p;

void operator&() {}

} nullptr = nullptr_t();

well... if you intent to optimize intel cpu instruction sets by intel c++ compiler, you may give up certain features implemented in visual studio c++ compiler. but i don't think it has any big issue currently except the one i mentioned above... [color=#9400D3]nullptr = 0[/color] is quite perfect temporary solution in the moment.


Attached Files
.patch   videodx11.patch (Size: 1.52 KB / Downloads: 123)
Website Find
Reply
04-13-2011, 02:11 PM
#2
Squall Leonhart Offline
Friend of local jackass
*******
Posts: 1,177
Threads: 27
Joined: Apr 2009
The developers should make all release builds with ICC, msvc builds with similar settings are almost always slower
[Image: squall_sig2.gif]
[Image: squall4rinoa.png]
VBA-M
Website Find
Reply
04-13-2011, 03:53 PM (This post was last modified: 04-13-2011, 04:04 PM by lannyboy.)
#3
lannyboy Offline
Member
***
Posts: 221
Threads: 6
Joined: Mar 2009
(04-13-2011, 02:11 PM)Squall Leonhart Wrote: The developers should make all release builds with ICC, msvc builds with similar settings are almost always slower

bare in mind that there is nothing wrong with msvc. it is only not [color=#0000CD]OPTIMIZED[/color] with special cpu instruction sets compilation like what icc provided. and icc is only working well on intel processors while msvc builds are available for full compatibility across all the pc.
Website Find
Reply
04-13-2011, 04:16 PM
#4
Squall Leonhart Offline
Friend of local jackass
*******
Posts: 1,177
Threads: 27
Joined: Apr 2009
thats true to a point.
the icc compiles are only slower when the app uses a dispatcher though.

the real problem is amd's slower throughput and bad SSE3.

both AMD (to current) and Intel (Core 2 and lower) has really bad throughput for haddps/hsubps, but on nahalem+ it provides gains
[Image: squall_sig2.gif]
[Image: squall4rinoa.png]
VBA-M
Website Find
Reply
04-13-2011, 04:49 PM
#5
lannyboy Offline
Member
***
Posts: 221
Threads: 6
Joined: Mar 2009
(04-13-2011, 04:16 PM)Squall Leonhart Wrote: thats true to a point.
the icc compiles are only slower when the app uses a dispatcher though.

the real problem is amd's slower throughput and bad SSE3.

both AMD (to current) and Intel (Core 2 and lower) has really bad throughput for haddps/hsubps, but on nahalem+ it provides gains

msvc is still a standard. icc is extra. developers should always stick to standard.
Website Find
Reply
04-13-2011, 08:29 PM
#6
Squall Leonhart Offline
Friend of local jackass
*******
Posts: 1,177
Threads: 27
Joined: Apr 2009
MSVC isn't really a standard, its just the general choice.

that doesn't make it the best one.
[Image: squall_sig2.gif]
[Image: squall4rinoa.png]
VBA-M
Website Find
Reply
04-13-2011, 09:15 PM
#7
lannyboy Offline
Member
***
Posts: 221
Threads: 6
Joined: Mar 2009
(04-13-2011, 08:29 PM)Squall Leonhart Wrote: MSVC isn't really a standard, its just the general choice.

that doesn't make it the best one.

yea, your term make sense. i guess 90% windows c++ developers will always stick to visual studio.
Website Find
Reply
04-14-2011, 06:35 AM (This post was last modified: 04-14-2011, 06:38 AM by Lectrode.)
#8
Lectrode Offline
1 Kid, 1 Laptop... yeah we're screwed =P
****
Posts: 559
Threads: 3
Joined: May 2010
(04-12-2011, 07:41 PM)lannyboy Wrote: [lots of awesome info Tongue]
Thanks! I will add this info to the tutorial and continue my builds again.

Also, according to this thread, nullptr at least will be supported in the next version of ICC.
[Image: sig.png]

[Image: 1339673.png]
Website Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode