Go to Post I am committed to this program because I know it works. It gets more students (than the school average) into college, it makes better adults of the students we mentor, it makes better employees of the mentors that participate, and it makes better schools in our communities. - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 04-05-2011, 07:00 PM
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 588
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: I Have A Question About Pointers

I'm sorry, but you appear to have a need to overcomplicate everything. If there's really no need to write the code in assembly, it would probably be better to write it in C++, because the compiler can probably write better assembly than a human.
__________________


GSR Dean's List Finalist 2011
Reply With Quote
  #2   Spotlight this post!  
Unread 04-05-2011, 07:24 PM
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: I Have A Question About Pointers

Quote:
Originally Posted by mikets View Post
Are you talking about the PowerPC processor in the cRIO or are you talking about Intel processor? Your initial post listed all the Intel processor registers. So I am not sure which one you are asking?
That is true, that was written for my computer, the thread started out as a general question and is becoming more specific. I know the PPC syntax is different. I don't think that its much of a big deal to transition from AT&T syntax to PPC syntax. I know in the IA 32 systems, it runs in protected mode. But I am not sure about PPCs

Quote:
Originally Posted by demosthenes2k8 View Post
I'm sorry, but you appear to have a need to overcomplicate everything. If there's really no need to write the code in assembly, it would probably be better to write it in C++, because the compiler can probably write better assembly than a human.
There is no need, but I have the mentality that I would learn so much more from it. I mean there is no NEED for me to even be on the team. You see where I am going with this?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-05-2011, 08:05 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: I Have A Question About Pointers

Quote:
Originally Posted by davidthefat View Post
That is true, that was written for my computer, the thread started out as a general question and is becoming more specific. I know the PPC syntax is different. I don't think that its much of a big deal to transition from AT&T syntax to PPC syntax. I know in the IA 32 systems, it runs in protected mode. But I am not sure about PPCs
BTW, there is no AT&T syntax, you probably meant Intel syntax. Also. there is no IA32 system. There is IA64 but 32-bit system is called x86. IA64 is an entirely different 64-bit architecture from Intel. The curent 64-bit Intel processors x64 is different from IA64 (Itanium). All new Intel processors are now 64-bit processors but they are backward compatible with 32-bit (x86) systems.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 04-05-2011, 08:49 PM
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: I Have A Question About Pointers

Quote:
Originally Posted by mikets View Post
BTW, there is no AT&T syntax, you probably meant Intel syntax. Also. there is no IA32 system. There is IA64 but 32-bit system is called x86. IA64 is an entirely different 64-bit architecture from Intel. The curent 64-bit Intel processors x64 is different from IA64 (Itanium). All new Intel processors are now 64-bit processors but they are backward compatible with 32-bit (x86) systems.
According to Intel there is http://www.intel.com/products/processor/manuals/
And I read that Intanium was the one that was NOT compatible with x86, that is why Intel uses AMD's x86-64 architecture.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.

Last edited by davidthefat : 04-05-2011 at 09:08 PM.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-06-2011, 01:24 AM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: I Have A Question About Pointers

Quote:
Originally Posted by davidthefat View Post
According to Intel there is http://www.intel.com/products/processor/manuals/
And I read that Intanium was the one that was NOT compatible with x86, that is why Intel uses AMD's x86-64 architecture.
Well, I guess I did not follow the Intel terminology as close as I thought. In any case, Intel has three architectures: Itanium 64 (IA64) is not compatible with anything, x64 which is compatible with amd64 and the old 32-bit whatever it is called (x86).
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 04-05-2011, 10:21 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,000
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: I Have A Question About Pointers

Quote:
Originally Posted by demosthenes2k8 View Post
the compiler can probably write better assembly than a human.
Although I agree that it is seldom necessary (or desirable) to write assembly code, an experienced assembly programmer can in many cases implement optimizations that a compiler won't use. The downside is that the code can be a brittle maintenance nightmare.


Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:30 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi