#76 ✓resolved
Peter Johnson

C style comments /* */ do not work under YASM gas mode

Reported by Peter Johnson | June 25th, 2011 @ 07:49 PM | in 0.6.0 (closed)

Originally posted on Trac by anonymous
Original Trac Ticket

  Description

Strangely enough, the most basic thing, C style comments, do not work under the YASM gas mode. I understand the GCC outputs assembly code that does not have comments, but when I am working with assembly language files, I need them. I was surprised to learn that C style // comments generate the syntax error: "label or instruction expected at start of line". In the mean time, at least I can use the hash (#) as a comment, or I can run the code through 'cpp' to strip them, but I really think YASM should support these natively.

Trac Attachments

h3. Trac Comments
comment:1

              Changed 5 years ago by peter


(In [1633]) Fix #78: Handle C-style comments (/* */) in GAS parser.

      comment:1

                  Changed 5 years ago by peter

      Status
        changed from new to closed
    
      Resolution
        set to fixed

(In [1633]) Fix #78: Handle C-style comments (/* */) in GAS parser.

      Status
        changed from new to closed
    
      Resolution
        set to fixed

comment:2

              Changed 22 months ago by jacopo.corbetta@gmail.com


Are  one line comments supposed to work?
They work in GAS

comment:3

              Changed 22 months ago by peter


(In [2232]) Fix #78 further: Support C++ style  comments.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages