Thread: From the standard

  1. #1
    Unregistered
    Guest

    C# Managed Data

    5.2.1 Managed Code Managed code is simply code that provides enough information to allow the CLI to provide a set of core
    services, including

    •Given an address inside the code for a method, locate the metadata describing the method
    •Walk the stack
    •Handle exceptions
    Store and retrieve security information

    This standard specifies a particular instruction set, the Common Intermediate Language (CIL, see Partition III),
    and a file format (see Partition II) for storing and transmitting managed code.
    Thats what managed data means from the ECMA standard.

  2. #2
    Unregistered
    Guest

    From the standard

    Although C# applications are intended to be economical with regards to memory and processing power requirements, the language was not intended to compete directly on performance and size with C or assembly language.
    And it means C not C++, but specifically C.

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    *sigh* okay, I'll bite... apart from probably being true, what is the point of your posts ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Unregistered
    Guest
    The point is that people were asking the question 'what does managed code' mean. So this is the definition from ECMA.

  5. #5
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >And it means C not C++, but specifically C.

    Umm? Well it says C so I suppose you're right, but why does it not apply to C++?

    >The point is that people were asking the question 'what does managed code' mean

    Who was asking these questions?

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    >The point is that people were asking the question

    Please attach your answers to the questions next time and don't litter the boards with it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  7. #7
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Please get a life nv. That has been your challenge for a long time hasn't it?
    Last edited by Troll_King; 02-16-2002 at 06:12 AM.

  8. #8
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Oh, but I have a life ! ... I just don't use it.


    Remember Mods can view IP adresses.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  9. #9
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Yup, once again I could care less about your cheap thrills. The sad thing is that you think I posted unregistered on purpose. What a pathetic loser you are. [...]

    Umm? Well it says C so I suppose you're right, but why does it not apply to C++?
    I don't think that C++ is as competitive performance wise. The standard mentions C++ when it means C++. The Microsoft OS was primarily coded in C and assembly. Maybe the reason was performance.

    /* edited for offensive language -nv, mod*/

  10. #10
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >I don't think that C++ is as competitive performance wise. The standard mentions C++ when it means C++. The Microsoft OS was primarily coded in C and assembly. Maybe the reason was performance.

    If you know what you're doing, there's no reason that C++ can be any less competitive in the performance stakes than C. If I remember correctly the reason stated for using C in the 'Microsoft OS' was existing C tools.

  11. #11
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    I'm just quoting the ECMA standards comittee that worked closely with Microsoft on C#.

  12. #12
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >I'm just quoting the ECMA standards comittee that worked closely with Microsoft on C#.

    Fair enough, but I wasn't questioning anything that the ECMA had stated.

  13. #13
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    Name one professional operating system that wasn't build using C.

  14. #14
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >Name one professional operating system that wasn't build using C.

    I not aware of any, but as C is efficient and has been reasonably stable/portable for quite a while it would probably make sense to code an o/s in C. As C++ is a superset of C, I see no reason that these o/s's couldn't be ported to C++ with a bit of work with no loss in performance.

  15. #15
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    Posts
    1,784
    C with Classes was explicitly designed to allow better organization of programs; "computation" was considered a problem solved by C. I was very concerned that improved program structure was not achieved at the expense of run-time overhead compared to C. The explicit aim was to match C in terms of run-time, code compactness, and data compactness. To wit: Someone once demonstrated a 3% systematic decrease in overall run-time efficiency compared with C caused by the use of a spurious temporary introduced into the function return mechanism by the C with Classes preprocessor. This was deemed unaccpetable and the overhead promptly removed. Similarly, to ensure layout compatibility with C and thereby avoid space overhead, no "houskeeping data" was placed int class objects.

    Another major concern was to avoid restrictions on the domain where C with Classes could be used. The ideal - which was achieved - was that C with Classes could be used for whatever C could be used for. This implied that in addition to matching C in efficiency, C with Classes could not provide benefits at the expense of removing "dangerous" or "ugly" features of C. This observation/principle had to be repeated often to people (rarely C with Classes users) who wanted C with Classes made safter by increasing static type checking along the lines of early Pascal. The alternative way of providing "safety," inserting run-time checks for all unsafe operations, was (and is) considered reasonable for debugging environments, but the language could not guarantee such checks without leaving C with a large advantage in run-time and space efficiency. Consequently, such checks were not provided for C with Classes, although some C++ environments do provide such checks for debugging. In addition, users can and do insert run-time checks where needed and affordable.

    C allows low-level opperations, such as bit manipulation and choosing between different sizes of integers. There are also facilities, such as explicit unchecked type conversions, for deliberately breaking the type system. C with Clases and later C++ follow this path by retaining the low-level and unsafe features of C. In contrast to C, C++ systematically eliminates the need to use such features except where they are essential and performs unsafe operations only at the explicit request of the programmer. I strongly felt then, as I still do, that there is no one right way of writing every program, and a language designer has no business trying to force programmers to use a particular style. The language designer does, on the other hand, have an obligation to encourage and support a varietly of styles and practices that have proven effective and to provide language features and tools to help programmers avoid the well-known traps and pitfalls.
    D&E

    Perhaps this explains some stuff.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bug in iterator comparison in C++ standard?
    By steev in forum C++ Programming
    Replies: 14
    Last Post: 07-12-2008, 12:02 AM
  2. Abstract Base Class and References
    By Thantos in forum C++ Programming
    Replies: 9
    Last Post: 10-13-2004, 01:35 PM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  4. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM
  5. standard language, standard compiler?
    By doubleanti in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 09-03-2001, 04:21 AM